Update "none selected" state to align with mocks:
Mocks: https://screenshot.googleplex.com/BYsmSRcRL5dhjve Implementation: https://hsv.googleplex.com/4797150908121088 Change-Id: I47e8f784fa850da4271170d44b3eb770721c3e8b Test: on device & unit Bug: 322074376
This commit is contained in:
@@ -114,7 +114,7 @@ public class DefaultCombinedPreferenceController extends DefaultAppPreferenceCon
|
||||
@Nullable CharSequence packageName,
|
||||
@Nullable CharSequence settingsActivity) {
|
||||
if (appName == null) {
|
||||
preference.setTitle(R.string.app_list_preference_none);
|
||||
preference.setTitle(R.string.credman_app_list_preference_none);
|
||||
} else {
|
||||
preference.setTitle(appName);
|
||||
}
|
||||
@@ -144,7 +144,7 @@ public class DefaultCombinedPreferenceController extends DefaultAppPreferenceCon
|
||||
|
||||
// Hide the open button if there is no defined settings activity.
|
||||
primaryPref.setOpenButtonVisible(!TextUtils.isEmpty(settingsActivity));
|
||||
primaryPref.setButtonsVisible(appName != null);
|
||||
primaryPref.setButtonsCompactMode(appName != null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user