diff --git a/app/src/apkFlavor/AndroidManifest.xml b/app/src/apkFlavor/AndroidManifest.xml
index a5c4d5b..0f37505 100644
--- a/app/src/apkFlavor/AndroidManifest.xml
+++ b/app/src/apkFlavor/AndroidManifest.xml
@@ -122,15 +122,7 @@
-
-
-
diff --git a/app/src/fdroidFlavor/AndroidManifest.xml b/app/src/fdroidFlavor/AndroidManifest.xml
index fb21e9d..f18913b 100644
--- a/app/src/fdroidFlavor/AndroidManifest.xml
+++ b/app/src/fdroidFlavor/AndroidManifest.xml
@@ -119,15 +119,7 @@
-
-
-
diff --git a/app/src/googlePlayFlavor/AndroidManifest.xml b/app/src/googlePlayFlavor/AndroidManifest.xml
index 44c59d6..a5d92b6 100644
--- a/app/src/googlePlayFlavor/AndroidManifest.xml
+++ b/app/src/googlePlayFlavor/AndroidManifest.xml
@@ -114,15 +114,7 @@
-
-
-
diff --git a/app/src/main/java/com/jens/automation2/receivers/PackageReplacedReceiver.java b/app/src/main/java/com/jens/automation2/receivers/PackageReplacedReceiver.java
index de80fd0..af23a1b 100644
--- a/app/src/main/java/com/jens/automation2/receivers/PackageReplacedReceiver.java
+++ b/app/src/main/java/com/jens/automation2/receivers/PackageReplacedReceiver.java
@@ -14,29 +14,18 @@ public class PackageReplacedReceiver extends BroadcastReceiver
@Override
public void onReceive(Context context, Intent intent)
{
-// Toast.makeText(context, "package replaced", Toast.LENGTH_LONG).show();
-// int intentUid = intent.getExtras().getInt("android.intent.extra.UID"); // userid of the application that has just been updated
-// int myUid = android.os.Process.myUid(); // userid of this application
-//
-// boolean replacing = intent.getBooleanExtra(Intent.EXTRA_REPLACING, false);
-
-// if(intentUid == myUid)
-// {
- Settings.readFromPersistentStorage(context);
+ Settings.readFromPersistentStorage(context);
- Miscellaneous.logEvent("i", context.getResources().getString(R.string.applicationHasBeenUpdated), context.getResources().getString(R.string.applicationHasBeenUpdated), 2);
- if(hasServiceBeenRunning() && Settings.startServiceAfterAppUpdate)
- {
- Miscellaneous.logEvent("i", "Service", context.getResources().getString(R.string.logStartingServiceAfterAppUpdate), 1);
- AutomationService.startAutomationService(context, true);
- }
- else
- {
- Miscellaneous.logEvent("i", "Service", context.getResources().getString(R.string.logNotStartingServiceAfterAppUpdate), 2);
- }
-// }
-// else
-// Miscellaneous.logEvent("i", "Service", "Some other app has been updated.", 5);
+ Miscellaneous.logEvent("i", context.getResources().getString(R.string.applicationHasBeenUpdated), context.getResources().getString(R.string.applicationHasBeenUpdated), 2);
+ if(hasServiceBeenRunning() && Settings.startServiceAfterAppUpdate)
+ {
+ Miscellaneous.logEvent("i", "Service", context.getResources().getString(R.string.logStartingServiceAfterAppUpdate), 1);
+ AutomationService.startAutomationService(context, true);
+ }
+ else
+ {
+ Miscellaneous.logEvent("i", "Service", context.getResources().getString(R.string.logNotStartingServiceAfterAppUpdate), 2);
+ }
}
private static boolean hasServiceBeenRunning()