diff options
author | Dmitry Yunitsky <yunik@mapswithme.com> | 2015-07-30 18:11:24 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:58:27 +0300 |
commit | 6081643ac7cfd5fd50f4a41add0d34d6460b5a3f (patch) | |
tree | ae7ba0e449c403953b8d07899782385e4d969b4d /android/AndroidManifest.xml | |
parent | 32244da39d02b943d5d5c66405ae16e0c9981104 (diff) |
[android] Catch 'app upgraded' intent.
(cherry picked from commit 7b8097f)
Diffstat (limited to 'android/AndroidManifest.xml')
-rw-r--r-- | android/AndroidManifest.xml | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index eac4576e55..4de3a5068d 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -171,8 +171,8 @@ <activity android:name="com.mapswithme.maps.MWMActivity" android:launchMode="singleTask" - android:windowSoftInputMode="stateAlwaysHidden|adjustPan" - android:theme="@style/MwmTheme.Map"> + android:theme="@style/MwmTheme.Map" + android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> </activity> <activity @@ -323,6 +323,25 @@ <category android:name="${applicationId}"/> </intent-filter> </receiver> + + <!-- Catches app upgraded intent. + Different receivers are used due to MY_PACKAGE_REPLACED was added in Honeycomb_MR1--> + <receiver android:name=".background.UpgradeReceiver" + android:enabled="@bool/isNewerThanHoneycombMr1"> + <intent-filter> + <action android:name="android.intent.action.MY_PACKAGE_REPLACED"/> + </intent-filter> + </receiver> + + <receiver android:name=".background.UpgradeReceiverCompat" + android:enabled="@bool/isOlderThanHoneycombMr1"> + <intent-filter> + <action android:name="android.intent.action.PACKAGE_REPLACED"/> + + <data android:scheme="package"/> + </intent-filter> + </receiver> + </application> </manifest> |