Co-authored-by: Arian <arian.kulmer@web.de> Change-Id: Iad52ad7d41ae69d8855dd80175b1faf79e56e382 Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From f8f16e8924b49f143ab1014bf802929ef6c904bd Mon Sep 17 00:00:00 2001
|
|
From: Arian <arian.kulmer@web.de>
|
|
Date: Tue, 15 Oct 2024 01:44:04 +0200
|
|
Subject: [PATCH 10/10] Start gallery as a new task
|
|
|
|
When launched from lockscreen user will have to unlock for the gallery to be opened, then the gallery is living in the camera process which is wrong.
|
|
Let it create a new task for it.
|
|
---
|
|
smali/com/android/camera/l3.smali | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/smali/com/android/camera/l3.smali b/smali/com/android/camera/l3.smali
|
|
index a5c3e074d..986da34da 100644
|
|
--- a/smali/com/android/camera/l3.smali
|
|
+++ b/smali/com/android/camera/l3.smali
|
|
@@ -1055,6 +1055,10 @@
|
|
|
|
invoke-virtual {p0, v0}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
+ # FLAG_ACTIVITY_NEW_TASK
|
|
+ const v0, 0x10000000
|
|
+ invoke-virtual {p0, v0}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
|
|
+
|
|
invoke-virtual {p1, p0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
|
|
|
|
invoke-virtual {p1}, Lcom/android/camera/ActivityBase;->ri()Z
|
|
--
|
|
2.47.2
|
|
|