Browse Source

Maybe initialise muhprefs before reading from it -.-

Wazakindjes 1 year ago
parent
commit
f5055758e0

BIN
app/rem0t0.apk


+ 1 - 1
app/src/.idea/misc.xml

@@ -29,7 +29,7 @@
       </value>
     </option>
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/build/classes" />
   </component>
   <component name="ProjectType">

+ 3 - 3
app/src/app_rem0t0/src/main/java/com/jemoeder/lief/rem0t0/MainActivity.java

@@ -158,6 +158,9 @@ public class MainActivity extends AppCompatActivity {
 		ab_col_rip = ContextCompat.getColor(muhctx, R.color.RIP);
 		ab_col_gucci = ContextCompat.getColor(muhctx, R.color.gucci);
 
+		wrapass.muhprefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
+		wrapass.muhprefs_ed = wrapass.muhprefs.edit();
+
 		String muhchanActive = "rem0t0 Connection";
 		wrapass.notifMan = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
 		NotificationCompat.Builder notifBuilder = new NotificationCompat.Builder(muhctx, muhchanActive);
@@ -197,9 +200,6 @@ public class MainActivity extends AppCompatActivity {
 		sb_bgcol_err = ContextCompat.getColor(muhctx, R.color.snackbar_background_err);
 		sb_tcol = ContextCompat.getColor(muhctx, R.color.snackbar_text);
 
-		wrapass.muhprefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
-		wrapass.muhprefs_ed = wrapass.muhprefs.edit();
-
 		try {
 			PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
 			String version = pInfo.versionName;

+ 2 - 2
app/src/app_rem0t0/version.properties

@@ -1,2 +1,2 @@
-#Mon Dec 09 18:18:38 CET 2019
-VERSION_CODE=314
+#Mon Dec 09 18:22:56 CET 2019
+VERSION_CODE=315