Skip to content

Commit

Permalink
v1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
mirfatif committed Jun 14, 2023
1 parent b449ab8 commit 03f5710
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
applicationId APP_ID

versionCode 119
versionName 'v1.19'
versionCode 120
versionName 'v1.20'

// Flavor-independent and BuildType-independent BuildConfig.APPLICATION_ID
buildConfigField 'String', 'APP_ID', '"' + APP_ID + '"'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ private boolean startRootDaemon() {
String su = MySettings.INS.getSuExePath();
Process proc = Util.runProc(TAG, "startRootDaemon", false, su);
if (proc == null) {

MySettings.INS.setRootEnabled(false);
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@
import com.mirfatif.permissionmanagerx.R;
import com.mirfatif.permissionmanagerx.app.App;
import com.mirfatif.privtasks.Constants;
import com.mirfatif.privtasks.util.MyLog;
import java.util.ArrayList;
import java.util.List;

public class ApiUtils {

private static final String TAG = "ApiUtils";

private ApiUtils() {}

public static String getString(int resId, Object... args) {
Expand Down Expand Up @@ -159,10 +162,14 @@ public static void setTargetFragment(Fragment source, Fragment target) {
public static <T extends Parcelable> ArrayList<T> getParcelableArrayListExtra(
Intent intent, String name, Class<T> cls) {
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.TIRAMISU) {
return intent.getParcelableArrayListExtra(name, cls);
} else {
return intent.getParcelableArrayListExtra(name);
try {
return intent.getParcelableArrayListExtra(name, cls);
} catch (NullPointerException e) {
MyLog.e(TAG, "getParcelableArrayListExtra", e);
}
}

return intent.getParcelableArrayListExtra(name);
}

public static boolean hasAppOpsPerm() {
Expand Down
2 changes: 2 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/120.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fixed crashes
- Minor improvements
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip

0 comments on commit 03f5710

Please sign in to comment.