From d5cb804f90bafbbccba0a6a84dd8340144e31097 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Sun, 26 Nov 2017 20:21:29 -0800 Subject: [PATCH] Switch from PACKAGE_REPLACED to MY_PACKAGE_REPLACED As part of the Oreo 'no more implicit intents' thing --- AndroidManifest.xml | 2 +- src/org/thoughtcrime/securesms/ExperienceUpgradeActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 3c1369452a..bcb31ef920 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -563,7 +563,7 @@ - + diff --git a/src/org/thoughtcrime/securesms/ExperienceUpgradeActivity.java b/src/org/thoughtcrime/securesms/ExperienceUpgradeActivity.java index 65444c9d36..828c628dfb 100644 --- a/src/org/thoughtcrime/securesms/ExperienceUpgradeActivity.java +++ b/src/org/thoughtcrime/securesms/ExperienceUpgradeActivity.java @@ -222,7 +222,7 @@ public class ExperienceUpgradeActivity extends BaseActionBarActivity { public static class AppUpgradeReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { - if (Intent.ACTION_PACKAGE_REPLACED.equals(intent.getAction()) && + if (Intent.ACTION_MY_PACKAGE_REPLACED.equals(intent.getAction()) && intent.getData().getSchemeSpecificPart().equals(context.getPackageName())) { Optional experienceUpgrade = getExperienceUpgrade(context);