Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 5324f5a

Browse files
committed
0.4.0 Release Candidate 1
1 parent 9390886 commit 5324f5a

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ dependencies {
7474
annotationProcessor "io.noties:prism4j-bundler:2.0.0"
7575
implementation "com.caverock:androidsvg:1.4"
7676

77-
// Utils for compat
78-
compileOnly "org.robolectric:android-all:11-robolectric-6757853"
77+
// Utils for compat (Needs to be outsourced ASAP)
78+
// compileOnly "org.robolectric:android-all:11-robolectric-6757853"
7979

8080
// Test
8181
testImplementation 'junit:junit:4.+'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package android.os;
2+
3+
import androidx.annotation.Keep;
4+
5+
import com.topjohnwu.superuser.ShellUtils;
6+
7+
@Keep
8+
public class SystemProperties {
9+
@Keep
10+
public static String get(String key) {
11+
String prop = ShellUtils.fastCmd("getprop " + key).trim();
12+
if (prop.endsWith("\n"))
13+
prop = prop.substring(0, prop.length() - 1).trim();
14+
return prop;
15+
}
16+
}

app/src/main/java/com/fox2code/mmm/compat/CompatActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import android.view.MenuItem;
2020
import android.view.View;
2121
import android.view.ViewConfiguration;
22-
import android.view.WindowManager;
2322

2423
import androidx.annotation.AttrRes;
2524
import androidx.annotation.CallSuper;

app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
112112
.withLicenseShown(true).withAboutMinimalDesign(false)
113113
.withUiListener(new OverScrollManager.LibsOverScroll());
114114
Preference update = findPreference("pref_update");
115-
update.setVisible(AppUpdateManager.getAppUpdateManager().peekHasUpdate());
115+
update.setVisible(BuildConfig.DEBUG ||
116+
AppUpdateManager.getAppUpdateManager().peekHasUpdate());
116117
update.setOnPreferenceClickListener(p -> {
117118
devModeStep = 0;
118119
IntentHelper.openUrl(p.getContext(),

0 commit comments

Comments
 (0)