summaryrefslogtreecommitdiff
path: root/app/src/fatweb/java
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2023-10-31 11:52:44 +0100
committercyBerta <cyberta@riseup.net>2023-10-31 18:53:25 +0100
commitf08d2e6f92fce4beb1b94e4324c57a5f1c5eb22e (patch)
tree083f41c2bbeb41406186833c5b1de4b303807122 /app/src/fatweb/java
parent3197444d9da4cf3a22d4c5aaf41da81f36d76bdf (diff)
fix regression in fatweb builds after switch to encrypted shared preferences
Diffstat (limited to 'app/src/fatweb/java')
-rw-r--r--app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java22
-rw-r--r--app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/InstallActivity.java2
2 files changed, 12 insertions, 12 deletions
diff --git a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java
index 5591454b..1c689566 100644
--- a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java
+++ b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/DownloadBroadcastReceiver.java
@@ -16,16 +16,6 @@
*/
package se.leap.bitmaskclient.appUpdate;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.os.Bundle;
-import android.widget.Toast;
-
-import se.leap.bitmaskclient.R;
-import se.leap.bitmaskclient.base.models.Constants;
-import se.leap.bitmaskclient.base.utils.PreferenceHelper;
-
import static android.app.Activity.RESULT_CANCELED;
import static se.leap.bitmaskclient.appUpdate.DownloadService.DOWNLOAD_PROGRESS;
import static se.leap.bitmaskclient.appUpdate.DownloadService.NO_NEW_VERISON;
@@ -39,6 +29,16 @@ import static se.leap.bitmaskclient.appUpdate.DownloadServiceCommand.DOWNLOAD_UP
import static se.leap.bitmaskclient.base.models.Constants.BROADCAST_DOWNLOAD_SERVICE_EVENT;
import static se.leap.bitmaskclient.base.models.Constants.BROADCAST_RESULT_CODE;
+import android.content.BroadcastReceiver;
+import android.content.Context;
+import android.content.Intent;
+import android.os.Bundle;
+import android.widget.Toast;
+
+import se.leap.bitmaskclient.R;
+import se.leap.bitmaskclient.base.models.Constants;
+import se.leap.bitmaskclient.base.utils.PreferenceHelper;
+
public class DownloadBroadcastReceiver extends BroadcastReceiver {
public static final String ACTION_DOWNLOAD = "se.leap.bitmaskclient.appUpdate.ACTION_DOWNLOAD";
@@ -69,7 +69,7 @@ public class DownloadBroadcastReceiver extends BroadcastReceiver {
break;
case UPDATE_NOT_FOUND:
if (resultData.getBoolean(NO_NEW_VERISON, false)) {
- PreferenceHelper.setLastAppUpdateCheck(context.getApplicationContext());
+ PreferenceHelper.setLastAppUpdateCheck();
}
break;
case UPDATE_DOWNLOADED:
diff --git a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/InstallActivity.java b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/InstallActivity.java
index 69c6feb3..92291a43 100644
--- a/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/InstallActivity.java
+++ b/app/src/fatweb/java/se.leap.bitmaskclient/appUpdate/InstallActivity.java
@@ -55,7 +55,7 @@ public class InstallActivity extends Activity {
}
protected void installUpdate() {
- PreferenceHelper.restartOnUpdate(this.getApplicationContext(), true);
+ PreferenceHelper.restartOnUpdate(true);
Intent installIntent = new Intent(Intent.ACTION_VIEW);
File update = UpdateDownloadManager.getUpdateFile(this.getApplicationContext());