summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/GalleryActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/app/GalleryActivity.java')
-rwxr-xr-xsrc/com/android/gallery3d/app/GalleryActivity.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/app/GalleryActivity.java b/src/com/android/gallery3d/app/GalleryActivity.java
index 4c504f468..0199ea0a0 100755
--- a/src/com/android/gallery3d/app/GalleryActivity.java
+++ b/src/com/android/gallery3d/app/GalleryActivity.java
@@ -201,13 +201,8 @@ public final class GalleryActivity extends AbstractGalleryActivity implements On
if (show) {
mBottomNavigation.setVisibility(View.VISIBLE);
} else {
- mBottomNavigation.setVisibility(View.INVISIBLE);
+ mBottomNavigation.setVisibility(View.GONE);
}
-
- // Convert dp to pixels
- float dp = getApplicationContext().getResources().getDisplayMetrics().density;
-
- params.setMargins(0, 0, 0, show ? Math.round(56 * dp) : 0);
}
public void showScreen(int position) {