diff options
| author | opencode <opencode@localhost> | 2026-11-21 15:18:00 +0900 |
|---|---|---|
| committer | opencode <opencode@localhost> | 2026-11-21 15:18:00 +0900 |
| commit | 3dd0cfbaa9db856c43300e8b799575cd1ed0eb3d (patch) | |
| tree | 5e966447415518f8787a71742e08a2fa2c7d6b75 | |
| parent | 1f6b134acaf78c0170f3628515918d714ad55a8e (diff) | |
| download | sidephonelauncher-main.tar.gz sidephonelauncher-main.zip | |
| -rw-r--r-- | app/build.gradle | 4 | ||||
| -rw-r--r-- | app/src/main/java/app/sidephonelauncher/helper/Utils.kt | 22 |
2 files changed, 19 insertions, 7 deletions
diff --git a/app/build.gradle b/app/build.gradle index 4f2c923..e6961a8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ def releaseKeyPassword = System.getenv("ANDROID_KEY_PASSWORD") ?: (project.hasPr def ciRunNumberRaw = System.getenv("GITHUB_RUN_NUMBER") ?: (project.hasProperty("GITHUB_RUN_NUMBER") ? project.property("GITHUB_RUN_NUMBER") : null) def ciRunNumber = ciRunNumberRaw?.isInteger() ? ciRunNumberRaw.toInteger() : null -def baseVersionCode = 109 -def baseVersionName = "v6.7.1" +def baseVersionCode = 2109 +def baseVersionName = "2.109" def ciVersionCode = ciRunNumber != null ? (baseVersionCode * 100000 + ciRunNumber) : baseVersionCode def ciVersionName = ciRunNumber != null ? "${baseVersionName}+${ciRunNumber}" : baseVersionName diff --git a/app/src/main/java/app/sidephonelauncher/helper/Utils.kt b/app/src/main/java/app/sidephonelauncher/helper/Utils.kt index 281fd59..3c07382 100644 --- a/app/src/main/java/app/sidephonelauncher/helper/Utils.kt +++ b/app/src/main/java/app/sidephonelauncher/helper/Utils.kt @@ -471,14 +471,26 @@ fun openSearch(context: Context) { @SuppressLint("WrongConstant", "PrivateApi") fun expandNotificationDrawer(context: Context) { - // Source: https://stackoverflow.com/a/51132142 + // Kyocera's SystemUI does not implement the standard notification shade. + // It uses a custom NotificationActivity instead, so start that explicitly. + // On other devices, fall back to the standard StatusBarManager call. try { - val statusBarService = context.getSystemService("statusbar") - val statusBarManager = Class.forName("android.app.StatusBarManager") - val method = statusBarManager.getMethod("expandNotificationsPanel") - method.invoke(statusBarService) + val intent = Intent("android.intent.action.SHOW_NOTIFICATION_ACTIVITY") + intent.setClassName( + "com.android.systemui", + "com.android.systemui.statusbar.NotificationActivity" + ) + context.startActivity(intent) } catch (e: Exception) { e.printStackTrace() + try { + val statusBarService = context.getSystemService("statusbar") + val statusBarManager = Class.forName("android.app.StatusBarManager") + val method = statusBarManager.getMethod("expandNotificationsPanel") + method.invoke(statusBarService) + } catch (e2: Exception) { + e2.printStackTrace() + } } } |
