diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/managers/lockscreen/LockScreenManager.java b/android/sdl_android/src/main/java/com/smartdevicelink/managers/lockscreen/LockScreenManager.java index 02e4beee78..fb2d411399 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/managers/lockscreen/LockScreenManager.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/managers/lockscreen/LockScreenManager.java @@ -37,7 +37,6 @@ import android.content.Intent; import android.content.IntentFilter; import android.graphics.Bitmap; -import android.os.Build; import android.os.Handler; import android.os.Looper; @@ -338,6 +337,7 @@ private void launchLockScreenActivity() { new IntentFilter(SDLLockScreenActivity.KEY_LOCKSCREEN_DISMISSED), Context.RECEIVER_NOT_EXPORTED); lockscreenDismissReceiverRegistered = true; + } LockScreenStatus status = getLockScreenStatus(); if (status == LockScreenStatus.REQUIRED || displayMode == LockScreenConfig.DISPLAY_MODE_ALWAYS || (status == LockScreenStatus.OPTIONAL && displayMode == LockScreenConfig.DISPLAY_MODE_OPTIONAL_OR_REQUIRED)) { diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/managers/lockscreen/SDLLockScreenActivity.java b/android/sdl_android/src/main/java/com/smartdevicelink/managers/lockscreen/SDLLockScreenActivity.java index c6b4b71ad4..9d13f55617 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/managers/lockscreen/SDLLockScreenActivity.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/managers/lockscreen/SDLLockScreenActivity.java @@ -42,7 +42,6 @@ import android.graphics.ColorFilter; import android.graphics.ColorMatrixColorFilter; import android.graphics.drawable.Drawable; -import android.os.Build; import android.os.Bundle; import android.view.GestureDetector; import android.view.MotionEvent; @@ -106,6 +105,7 @@ protected void onCreate(Bundle savedInstanceState) { IntentFilter lockscreenFilter = new IntentFilter(); lockscreenFilter.addAction(CLOSE_LOCK_SCREEN_ACTION); lockscreenFilter.addAction(LOCKSCREEN_DEVICE_LOGO_DOWNLOADED); + // register broadcast receivers AndroidTools.registerReceiver(this, lockScreenBroadcastReceiver, lockscreenFilter, RECEIVER_NOT_EXPORTED); diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/util/ServiceFinder.java b/android/sdl_android/src/main/java/com/smartdevicelink/util/ServiceFinder.java index fe77632199..7b887f44a7 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/util/ServiceFinder.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/util/ServiceFinder.java @@ -37,7 +37,6 @@ import android.content.Intent; import android.content.IntentFilter; import android.content.pm.ResolveInfo; -import android.os.Build; import android.os.Handler; import android.os.Looper;