40 lines
1.4 KiB
Diff
40 lines
1.4 KiB
Diff
From ef92e12156bda49382c281500be06171269b6087 Mon Sep 17 00:00:00 2001
|
|
From: Arian <arian.kulmer@web.de>
|
|
Date: Fri, 8 Mar 2024 02:11:53 +0100
|
|
Subject: [PATCH 06/10] Support third party galleries
|
|
|
|
---
|
|
smali/com/android/camera/l3.smali | 8 ++------
|
|
1 file changed, 2 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/smali/com/android/camera/l3.smali b/smali/com/android/camera/l3.smali
|
|
index f348205c2..510101446 100644
|
|
--- a/smali/com/android/camera/l3.smali
|
|
+++ b/smali/com/android/camera/l3.smali
|
|
@@ -1057,9 +1057,9 @@
|
|
|
|
invoke-direct {p0, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
|
|
|
|
- const-string v0, "com.miui.gallery"
|
|
+ const-string v0, "android.intent.category.APP_GALLERY"
|
|
|
|
- invoke-virtual {p0, v0}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
+ invoke-virtual {p0, v0}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
invoke-virtual {p1, p0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
|
|
|
|
@@ -1166,10 +1166,6 @@
|
|
invoke-direct {p0, v0, p2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V
|
|
|
|
:goto_0
|
|
- const-string p1, "com.miui.gallery"
|
|
-
|
|
- invoke-virtual {p0, p1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
|
|
-
|
|
const-string p1, "from_MiuiCamera"
|
|
|
|
const/4 p2, 0x1
|
|
--
|
|
2.47.2
|
|
|