From ff1f879ab6ffd940aaeaa1bf86640177c77fd880 Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Mon, 8 Mar 2021 00:46:53 +0100 Subject: [PATCH] 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 :). --- play-services-core/src/main/AndroidManifest.xml | 7 +++++++ .../src/main/res/navigation/nav_nearby.xml | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/play-services-core/src/main/AndroidManifest.xml b/play-services-core/src/main/AndroidManifest.xml index ac3b2254..8747be32 100644 --- a/play-services-core/src/main/AndroidManifest.xml +++ b/play-services-core/src/main/AndroidManifest.xml @@ -448,6 +448,13 @@ android:label="@string/gms_settings_name" android:process=":ui" android:roundIcon="@mipmap/ic_microg_settings"> + + + + + diff --git a/play-services-nearby-core-ui/src/main/res/navigation/nav_nearby.xml b/play-services-nearby-core-ui/src/main/res/navigation/nav_nearby.xml index 8b27a3d4..47e74b85 100644 --- a/play-services-nearby-core-ui/src/main/res/navigation/nav_nearby.xml +++ b/play-services-nearby-core-ui/src/main/res/navigation/nav_nearby.xml @@ -26,7 +26,11 @@ + android:label="@string/pref_exposure_collected_rpis_title"> + +