Skip to content

Commit

Permalink
v1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
mirfatif committed Jun 29, 2024
1 parent 643527b commit 0bebfdc
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,13 @@ private void openAppInfo() {
}
int pkgUserId = UserUtils.getUserId(mPkg.getUid());
if (UserUtils.getUserId() == pkgUserId) {
startActivity(
new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
.setData(Uri.parse("package:" + mPkg.getName())));
try {
startActivity(
new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
.setData(Uri.parse("package:" + mPkg.getName())));
} catch (ActivityNotFoundException ignored) {
UiUtils.showToast(R.string.opening_app_info_failed_toast);
}
} else if (DaemonHandler.INS.isDaemonAlive()) {
BgRunner.execute(() -> DaemonIface.INS.openAppInfo(mPkg.getName(), pkgUserId));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ public void onDestroy() {

mTimer.cancel();

mLogWriter.close();
var logWriter = mLogWriter;
if (logWriter != null) {
logWriter.close();
}

MySettings.INS.setDebugLog(false);
}
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@
<string name="install">Install</string>
<!-- CHAR LIMIT: 20 -->
<string name="wrun_not_installed">WhatsRunning not installed</string>
<!-- CHAR LIMIT: 20 -->
<string name="opening_app_info_failed_toast">Android failed to open app info</string>

<!-- PackageActivity -->
<string name="crowdin_comment_break_strings_19" translatable="false">Crowdin comment break</string>
Expand Down
22 changes: 22 additions & 0 deletions app/src/release/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<!-- Not required. It's added by build system due to libadb targeting Android SDK < 4 -->
<uses-permission
android:name="android.permission.READ_PHONE_STATE"
tools:node="remove" />

<!-- Not required. It's added by build system due to libadb targeting Android SDK < 4 -->
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage"
tools:node="remove" />

<!-- Not required. It's added by build system due to libadb targeting Android SDK < 4 -->
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage"
tools:node="remove" />

</manifest>
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/126.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Minor fixes and improvements

0 comments on commit 0bebfdc

Please sign in to comment.