diff options
author | jinwu <jinwu@codeaurora.org> | 2018-01-29 15:12:30 +0800 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2018-11-13 12:36:52 +0000 |
commit | c20d4bd77b99f34dedc2ebbeafeae567b1207eca (patch) | |
tree | f1c9bf5c5ade8d47a2fcd0b0e86aed247630edce /src/com/android/gallery3d/app | |
parent | e8ec3fb0a9014bec5d69b3249268dd7aec7d16e3 (diff) | |
download | android_packages_apps_Gallery2-c20d4bd77b99f34dedc2ebbeafeae567b1207eca.tar.gz android_packages_apps_Gallery2-c20d4bd77b99f34dedc2ebbeafeae567b1207eca.tar.bz2 android_packages_apps_Gallery2-c20d4bd77b99f34dedc2ebbeafeae567b1207eca.zip |
Don't show Camera Icon when no pictures found in Albums
Remove the camera icon and show action.
Change-Id: I758ce1ebc4e25128023423c456b59300cd724f29
Diffstat (limited to 'src/com/android/gallery3d/app')
-rwxr-xr-x | src/com/android/gallery3d/app/AlbumSetPage.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/app/AlbumSetPage.java b/src/com/android/gallery3d/app/AlbumSetPage.java index 580cd0961..c17143631 100755 --- a/src/com/android/gallery3d/app/AlbumSetPage.java +++ b/src/com/android/gallery3d/app/AlbumSetPage.java @@ -426,11 +426,6 @@ public class AlbumSetPage extends ActivityState implements mCameraButton = null; } - private void showCameraButton() { - if (mCameraButton == null && !setupCameraButton()) return; - mCameraButton.setVisibility(View.VISIBLE); - } - private void hideCameraButton() { if (mCameraButton == null) return; mCameraButton.setVisibility(View.GONE); @@ -453,7 +448,6 @@ public class AlbumSetPage extends ActivityState implements mShowedEmptyToastForSelf = true; showEmptyAlbumToast(Toast.LENGTH_LONG); mSlotView.invalidate(); - showCameraButton(); } return; } else { |