From 44fb45c42187cd66a1e305b8317385c95f1a73a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timi=20Rautam=C3=A4ki?= Date: Sun, 22 Aug 2021 18:27:26 +0000 Subject: [PATCH] SUW: use standard navigation method Use software/hardware back button and add on-screen Next & Skip buttons. Change-Id: I7bfa052f2217e51ea778df688e7169657aaad2c6 --- res/layout/choose_data_sim_page.xml | 9 +- res/layout/finish_activity.xml | 11 +-- res/layout/intro_restore_activity.xml | 20 ++-- res/layout/location_settings.xml | 11 +-- res/layout/mobile_data_settings.xml | 11 +-- res/layout/navigation_layout.xml | 40 ++++++++ res/layout/setup_biometric.xml | 19 ++-- res/layout/setup_datetime_page.xml | 11 +-- res/layout/setup_lineage_settings.xml | 11 +-- res/layout/setup_locale.xml | 11 +-- res/layout/setup_lockscreen.xml | 20 ++-- res/layout/sim_missing_page.xml | 11 +-- res/layout/update_recovery_page.xml | 11 +-- res/layout/welcome_activity.xml | 11 +-- res/values/attrs.xml | 4 + res/values/styles.xml | 25 ----- .../setupwizard/BaseSetupWizardActivity.java | 93 ++++--------------- .../setupwizard/BiometricActivity.java | 6 +- .../lineageos/setupwizard/FinishActivity.java | 1 - .../setupwizard/NavigationLayout.java | 73 +++++++++++++++ .../setupwizard/ScreenLockActivity.java | 13 ++- .../setupwizard/WelcomeActivity.java | 8 +- .../backup/RestoreIntroActivity.java | 10 +- 23 files changed, 226 insertions(+), 214 deletions(-) create mode 100644 res/layout/navigation_layout.xml create mode 100644 src/org/lineageos/setupwizard/NavigationLayout.java diff --git a/res/layout/choose_data_sim_page.xml b/res/layout/choose_data_sim_page.xml index fdac422d..0de7e1d4 100644 --- a/res/layout/choose_data_sim_page.xml +++ b/res/layout/choose_data_sim_page.xml @@ -25,7 +25,8 @@ + android:layout_height="match_parent" + style="@style/SudContentFrame"> - + android:layout_height="wrap_content" /> diff --git a/res/layout/finish_activity.xml b/res/layout/finish_activity.xml index a80a5609..70050635 100644 --- a/res/layout/finish_activity.xml +++ b/res/layout/finish_activity.xml @@ -28,7 +28,8 @@ + android:orientation="vertical" + style="@style/SudContentFrame"> + android:padding="@dimen/content_margin_left"/> - + android:layout_height="wrap_content" /> diff --git a/res/layout/intro_restore_activity.xml b/res/layout/intro_restore_activity.xml index 09366057..a3934a08 100644 --- a/res/layout/intro_restore_activity.xml +++ b/res/layout/intro_restore_activity.xml @@ -25,7 +25,8 @@ + android:layout_height="match_parent" + style="@style/SudContentFrame"> + android:layout_height="wrap_content"> -