mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1058160 - Make o.m.g.BrowserApp LAUNCHER activity default and high priority. r=bnicholson
In order to launch in response to the MAIN activity (via |adb shell am start -a android.intent.action.MAIN org.mozilla.fennec|, for example), the activity must have category default. That is added automatically to <activity> elements that have category LAUNCHER, but apparently not to <activity-alias> elements. This patch adds it manually. In general, <intent-filters> are prioritized by their order in the manifest file. To avoid future confusion, this patch bumps the android:priority of the existing filter. --HG-- extra : rebase_source : 021da06af2f3e41fc0f38eee7fc33360797f64b0
This commit is contained in:
parent
180aa4fdac
commit
e70b36fad3
@ -129,10 +129,14 @@
|
|||||||
<activity-alias android:name=".App"
|
<activity-alias android:name=".App"
|
||||||
android:label="@MOZ_APP_DISPLAYNAME@"
|
android:label="@MOZ_APP_DISPLAYNAME@"
|
||||||
android:targetActivity="org.mozilla.gecko.BrowserApp">
|
android:targetActivity="org.mozilla.gecko.BrowserApp">
|
||||||
<intent-filter>
|
<!-- android:priority ranges between -1000 and 1000. We never want
|
||||||
|
another activity to usurp the MAIN action, so we ratchet our
|
||||||
|
priority up. -->
|
||||||
|
<intent-filter android:priority="999">
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER"/>
|
<category android:name="android.intent.category.MULTIWINDOW_LAUNCHER"/>
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<meta-data android:name="com.sec.minimode.icon.portrait.normal"
|
<meta-data android:name="com.sec.minimode.icon.portrait.normal"
|
||||||
|
Loading…
Reference in New Issue
Block a user