Skip to content
This repository has been archived by the owner on Sep 8, 2019. It is now read-only.

Commit

Permalink
- v1.5.2 Beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
kollerlukas committed Jun 15, 2017
1 parent d9f63e1 commit bd08e45
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
Binary file modified app/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "us.koller.cameraroll"
minSdkVersion 19
targetSdkVersion 25
versionCode 20
versionName "v1.5.1 Beta"
versionCode 21
versionName "v1.5.2 Beta"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down
26 changes: 14 additions & 12 deletions app/src/main/java/us/koller/cameraroll/ui/AlbumActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -430,18 +430,20 @@ public void onActivityReenter(int requestCode, Intent data) {
if (data != null) {
Bundle tmpReenterState = new Bundle(data.getExtras());
sharedElementReturnPosition = tmpReenterState.getInt(EXTRA_CURRENT_ALBUM_POSITION);
album.getAlbumItems().get(sharedElementReturnPosition).isSharedElement = true;
if (recyclerView.getAdapter().getItemCount() > 0) {
postponeEnterTransition();
recyclerView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
@Override
public void onLayoutChange(View v, int l, int t, int r, int b,
int oL, int oT, int oR, int oB) {
recyclerView.removeOnLayoutChangeListener(this);
startPostponedEnterTransition();
}
});
recyclerView.scrollToPosition(sharedElementReturnPosition);
if (sharedElementReturnPosition != -1) {
album.getAlbumItems().get(sharedElementReturnPosition).isSharedElement = true;
if (recyclerView.getAdapter().getItemCount() > 0) {
postponeEnterTransition();
recyclerView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {
@Override
public void onLayoutChange(View v, int l, int t, int r, int b,
int oL, int oT, int oR, int oB) {
recyclerView.removeOnLayoutChangeListener(this);
startPostponedEnterTransition();
}
});
recyclerView.scrollToPosition(sharedElementReturnPosition);
}
}
}
}
Expand Down

0 comments on commit bd08e45

Please sign in to comment.