SUW: improve navigation on D-pad devices

* Set the initial focus on a usable view instead of a whole layout.
* Set the next focus of the locale selector to next-button.

Change-Id: I4a16127c24e87b52e38892882e44b3a8d24b779b
This commit is contained in:
Timi Rautamäki
2022-01-15 09:25:02 +00:00
parent b416c33ab6
commit daef80ecaf
4 changed files with 20 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright (C) 2016 The CyanogenMod Project
* Copyright (C) 2017-2021 The LineageOS Project
* 2017-2022 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -247,6 +247,10 @@ public abstract class BaseSetupWizardActivity extends Activity implements Naviga
}
}
public Button getNextButton() {
return mNavigationBar.getNextButton();
}
protected void setSkipText(int resId) {
if (mNavigationBar != null) {
mNavigationBar.getSkipButton().setText(resId);