diff options
author | jinwu <jinwu@codeaurora.org> | 2018-01-29 15:12:30 +0800 |
---|---|---|
committer | LuK1337 <priv.luk@gmail.com> | 2019-10-21 21:40:56 +0200 |
commit | 1ddbcb1bd460313dc17760c847212c0672fe8365 (patch) | |
tree | 6876e36d5bdbd2988666d1b81ad7f6679901f32f | |
parent | 0fa8e4a08c1db7088276ef894db22a73ccc200ec (diff) | |
download | android_packages_apps_Gallery2-1ddbcb1bd460313dc17760c847212c0672fe8365.tar.gz android_packages_apps_Gallery2-1ddbcb1bd460313dc17760c847212c0672fe8365.tar.bz2 android_packages_apps_Gallery2-1ddbcb1bd460313dc17760c847212c0672fe8365.zip |
Don't show Camera Icon when no pictures found in Albums
Remove the camera icon and show action.
Change-Id: I758ce1ebc4e25128023423c456b59300cd724f29
-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 { |