Merge "Fix some pages crash after importing AndroidX from build 5175906"
This commit is contained in:
committed by
Android (Google) Code Review
commit
f30fb4b20b
@@ -295,7 +295,13 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
|
||||
if (!controller.isAvailable()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
final String key = controller.getPreferenceKey();
|
||||
if (TextUtils.isEmpty(key)) {
|
||||
Log.d(TAG, String.format("Preference key is %s in Controller %s",
|
||||
key, controller.getClass().getSimpleName()));
|
||||
continue;
|
||||
}
|
||||
|
||||
final Preference preference = screen.findPreference(key);
|
||||
if (preference == null) {
|
||||
|
Reference in New Issue
Block a user