consolidate IntentFilter for matching HTTP map URIs with no specific path
This puts them all into a single <intent-filter> to improve readability and reduce the number of IntentFilters used. This also adds some new domains: * maps.yandex.com * map.baidu.cn * map.baidu.com * wb.amap.com * www.amap.com
This commit is contained in:
parent
147f2adf05
commit
50abbb0d57
1 changed files with 10 additions and 15 deletions
|
@ -181,10 +181,16 @@
|
|||
<category android:name="android.intent.category.BROWSABLE"/>
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<data android:scheme="http" android:host="maps.google.com" />
|
||||
<data android:scheme="https" android:host="maps.google.com" />
|
||||
<data android:scheme="http" android:host="maps.yandex.ru" />
|
||||
<data android:scheme="https" android:host="maps.yandex.ru" />
|
||||
<data android:scheme="http" />
|
||||
<data android:scheme="https" />
|
||||
<data android:host="maps.google.com" />
|
||||
<data android:host="maps.yandex.ru" />
|
||||
<data android:host="maps.yandex.com" />
|
||||
<data android:host="www.openstreetmap.org" />
|
||||
<data android:host="openstreetmap.org" />
|
||||
<data android:host="osm.org" />
|
||||
<data android:host="map.baidu.cn" />
|
||||
<data android:host="map.baidu.com" />
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
|
@ -196,17 +202,6 @@
|
|||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<data android:scheme="http" android:host="www.openstreetmap.org" />
|
||||
<data android:scheme="https" android:host="www.openstreetmap.org" />
|
||||
<data android:scheme="http" android:host="openstreetmap.org" />
|
||||
<data android:scheme="https" android:host="openstreetmap.org" />
|
||||
<data android:scheme="http" android:host="osm.org" />
|
||||
<data android:scheme="https" android:host="osm.org" />
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<data android:scheme="http" android:host="openstreetmap.de" android:pathPrefix="/karte" />
|
||||
<data android:scheme="https" android:host="openstreetmap.de" android:pathPrefix="/karte" />
|
||||
|
|
Loading…
Reference in a new issue