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

Commit

Permalink
- Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kollerlukas committed Feb 6, 2017
1 parent 2032531 commit cb3857f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
applicationId "us.koller.cameraroll"
minSdkVersion 21
targetSdkVersion 25
versionCode 8
versionCode 9
versionName "v1.0 Beta"
renderscriptTargetApi 25
renderscriptSupportModeEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public interface Callback {
public static final String FILE_TYPE_NO_MEDIA = ".nomedia";
public static final int PERMISSION_REQUEST_CODE = 16;

private static int mode = -1;

private Loader loader;

public MediaLoader() {
Expand Down Expand Up @@ -94,9 +92,7 @@ public void onDestroy() {
}

public static void toggleMode(Context context) {
if (mode == -1) {
mode = getMode(context);
}
int mode = getMode(context);

int newMode = mode == MODE_STORAGE ? MODE_MEDIASTORE : MODE_STORAGE;

Expand Down
7 changes: 7 additions & 0 deletions app/src/main/java/us/koller/cameraroll/ui/AboutActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ public void run() {

@Override
public void onSwipeFinish(int dir) {
if (handler != null && runnable != null) {
handler.removeCallbacks(runnable);
consumed = false;
}
handler = null;
runnable = null;

getWindow().setReturnTransition(new TransitionSet()
.addTransition(new Slide(dir > 0 ? Gravity.TOP : Gravity.BOTTOM))
.setInterpolator(new AccelerateDecelerateInterpolator()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
Expand Down

0 comments on commit cb3857f

Please sign in to comment.