Skip to content

Commit 9b0eede

Browse files
committed
add package to pendingIntent in lockScreenManager
1 parent f5f33cf commit 9b0eede

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/sdl_android/src/main/java/com/smartdevicelink/managers/lockscreen/LockScreenManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ private void closeLockScreenActivity() {
378378
if (context.get() != null) {
379379
LockScreenStatus status = getLockScreenStatus();
380380
if (status == LockScreenStatus.OFF || (status == LockScreenStatus.OPTIONAL && displayMode != LockScreenConfig.DISPLAY_MODE_OPTIONAL_OR_REQUIRED)) {
381-
context.get().sendBroadcast(new Intent(SDLLockScreenActivity.CLOSE_LOCK_SCREEN_ACTION));
381+
Intent intent = new Intent(SDLLockScreenActivity.CLOSE_LOCK_SCREEN_ACTION)
382+
.setPackage(context.get().getPackageName());
383+
context.get().sendBroadcast(intent);
382384
}
383385
}
384386
lastIntentUsed = null;

0 commit comments

Comments
 (0)