From 6782f7b20894b12a431aec5d3397ee74171f6e74 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 23 Mar 2017 20:25:30 +0100 Subject: [PATCH] fix #192, show the Settings menu button at more screens --- .../com/simplemobiletools/gallery/activities/MediaActivity.kt | 1 - .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 1 + app/src/main/res/menu/menu_viewpager.xml | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index bc6c601e9..c50017626 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -117,7 +117,6 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { findItem(R.id.folder_view).isVisible = mShowAll findItem(R.id.open_camera).isVisible = mShowAll - findItem(R.id.settings).isVisible = mShowAll findItem(R.id.about).isVisible = mShowAll findItem(R.id.increase_column_count).isVisible = config.mediaColumnCnt < 10 diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index 51ae9a320..b1fda4cc2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -160,6 +160,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View R.id.rotate_right -> rotateImage(90f) R.id.rotate_left -> rotateImage(-90f) R.id.rotate_one_eighty -> rotateImage(180f) + R.id.settings -> launchSettings() else -> return super.onOptionsItemSelected(item) } return true diff --git a/app/src/main/res/menu/menu_viewpager.xml b/app/src/main/res/menu/menu_viewpager.xml index f2a5430e6..bc5abba82 100644 --- a/app/src/main/res/menu/menu_viewpager.xml +++ b/app/src/main/res/menu/menu_viewpager.xml @@ -65,4 +65,8 @@ android:id="@+id/show_on_map" android:title="@string/show_on_map" app:showAsAction="never"/> +