From 12c50ad6f5f0b49722bdd6af47074e71fee10382 Mon Sep 17 00:00:00 2001 From: Chaohui Wang Date: Fri, 14 Oct 2022 13:51:11 +0800 Subject: [PATCH] Update doc for BrowseActivity Bug: 244122804 Test: NA Change-Id: I433ce48cbb9d1393d8d420086a0ce1808a9405b2 --- .../settingslib/spa/framework/BrowseActivity.kt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/BrowseActivity.kt b/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/BrowseActivity.kt index d87c31b7f95c5..b9e78248e24a4 100644 --- a/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/BrowseActivity.kt +++ b/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/BrowseActivity.kt @@ -42,13 +42,19 @@ private const val NULL_PAGE_NAME = "NULL" /** * The Activity to render ALL SPA pages, and handles jumps between SPA pages. + * * One can open any SPA page by: - * $ adb shell am start -n -e spa:SpaActivity:destination - * For gallery, BrowseActivityComponent = com.android.settingslib.spa.gallery/.MainActivity - * For SettingsGoogle, BrowseActivityComponent = com.android.settings/.spa.SpaActivity + * ``` + * $ adb shell am start -n -e spaActivityDestination + * ``` + * - For Gallery, BrowseActivityComponent = com.android.settingslib.spa.gallery/.GalleryMainActivity + * - For Settings, BrowseActivityComponent = com.android.settings/.spa.SpaActivity + * * Some examples: - * $ adb shell am start -n -e spa:SpaActivity:destination HOME - * $ adb shell am start -n -e spa:SpaActivity:destination ARGUMENT/bar/5 + * ``` + * $ adb shell am start -n -e spaActivityDestination HOME + * $ adb shell am start -n -e spaActivityDestination ARGUMENT/bar/5 + * ``` */ open class BrowseActivity : ComponentActivity() { private val spaEnvironment get() = SpaEnvironmentFactory.instance