From 911a39a22f4e9ba5cb108fe226148fe2fe1a333b Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 12 May 2025 20:14:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E5=BA=8F=E5=88=97=E5=8F=B7=E4=BC=A0?= =?UTF-8?q?=E7=BB=99MpRes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/xypower/mpapp/MainActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/xypower/mpapp/MainActivity.java b/app/src/main/java/com/xypower/mpapp/MainActivity.java index 400e8fd0..3b49fa16 100644 --- a/app/src/main/java/com/xypower/mpapp/MainActivity.java +++ b/app/src/main/java/com/xypower/mpapp/MainActivity.java @@ -138,6 +138,10 @@ public class MainActivity extends AppCompatActivity { Intent resIntent = getPackageManager().getLaunchIntentForPackage(MicroPhotoContext.PACKAGE_NAME_MPRES); resIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); resIntent.putExtra("initres", 1); + String sn = MicroPhotoService.getSerialNumber(); + if (!TextUtils.isEmpty(sn)) { + resIntent.putExtra("sn", sn); + } startActivity(resIntent); } }