From b5e0761d8cdef07de4ab2027dce464bb82ff7f78 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 29 Nov 2017 22:37:42 +0100 Subject: [PATCH] do not use the dynamic theme at the camera screen --- app/build.gradle | 2 +- .../com/simplemobiletools/camera/activities/MainActivity.kt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5e2c9756..085d1faf 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -46,7 +46,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.0.0' + implementation 'com.simplemobiletools:commons:3.0.3' debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt index 9ff0d508..65afa73a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/MainActivity.kt @@ -52,8 +52,8 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave lateinit var mOrientationEventListener: OrientationEventListener override fun onCreate(savedInstanceState: Bundle?) { + useDynamicTheme = false super.onCreate(savedInstanceState) - setTheme(R.style.FullScreenTheme) requestWindowFeature(Window.FEATURE_NO_TITLE) window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN) if (config.alwaysOpenBackCamera) @@ -69,7 +69,6 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave override fun onResume() { super.onResume() - setTheme(R.style.FullScreenTheme) if (hasStorageAndCameraPermissions()) { resumeCameraItems() setupPreviewImage(mIsInPhotoMode)