Commit ff1f879a authored by Marcus Hoffmann's avatar Marcus Hoffmann Committed by Marvin W.
Browse files

add deeplink to rpi information screen

CCTG could use this when interacting with external microG. Instead of
directly embedding the fragment through the bottomNavigationBar we can
at least jump to the correct target location. Doing this through an
implicit deeplink intent seems easiest as an explicit intent adds all
the top level nav elements to the backstack
(see: https://developer.android.com/guide/navigation/navigation-deep-link).

Tested and this works pretty nicely :).
parent c9e09e97
...@@ -448,6 +448,13 @@ ...@@ -448,6 +448,13 @@
android:label="@string/gms_settings_name" android:label="@string/gms_settings_name"
android:process=":ui" android:process=":ui"
android:roundIcon="@mipmap/ic_microg_settings"> android:roundIcon="@mipmap/ic_microg_settings">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<data
android:host="exposure-notifications-rpis"
android:scheme="x-gms-settings" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter> <intent-filter>
<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" />
......
...@@ -26,7 +26,11 @@ ...@@ -26,7 +26,11 @@
<fragment <fragment
android:id="@+id/exposureNotificationsRpisFragment" android:id="@+id/exposureNotificationsRpisFragment"
android:name="org.microg.gms.nearby.core.ui.ExposureNotificationsRpisFragment" android:name="org.microg.gms.nearby.core.ui.ExposureNotificationsRpisFragment"
android:label="@string/pref_exposure_collected_rpis_title" /> android:label="@string/pref_exposure_collected_rpis_title">
<deepLink
app:action="ACTION_VIEW"
app:uri="x-gms-settings://exposure-notifications-rpis" />
</fragment>
<fragment <fragment
android:id="@+id/exposureNotificationsAppFragment" android:id="@+id/exposureNotificationsAppFragment"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment