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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user