Delay adding app settings link until data fetch returns,
to avoid reordering/visible misplaced "additional settings in the app" during transition. Bug: 62051521 Test: manual with transition scale turned to 10x sloooow. Change-Id: I50666fbcb2a14344bbdbb2f4347c8470edb96619
This commit is contained in:
@@ -95,7 +95,6 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
|||||||
getPreferenceScreen().setOrderingAsAdded(true);
|
getPreferenceScreen().setOrderingAsAdded(true);
|
||||||
setupBlock();
|
setupBlock();
|
||||||
addHeaderPref();
|
addHeaderPref();
|
||||||
addAppLinkPref();
|
|
||||||
|
|
||||||
mShowLegacyChannelConfig = mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid);
|
mShowLegacyChannelConfig = mBackend.onlyHasDefaultChannel(mAppRow.pkg, mAppRow.uid);
|
||||||
if (mShowLegacyChannelConfig) {
|
if (mShowLegacyChannelConfig) {
|
||||||
@@ -120,6 +119,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
populateChannelList();
|
populateChannelList();
|
||||||
|
addAppLinkPref();
|
||||||
}
|
}
|
||||||
}.execute();
|
}.execute();
|
||||||
}
|
}
|
||||||
|
@@ -263,7 +263,7 @@ abstract public class NotificationSettingsBase extends SettingsPreferenceFragmen
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void addAppLinkPref() {
|
protected void addAppLinkPref() {
|
||||||
if (mAppRow.settingsIntent != null) {
|
if (mAppRow.settingsIntent != null && mAppLink == null) {
|
||||||
mAppLink = new Preference(getPrefContext());
|
mAppLink = new Preference(getPrefContext());
|
||||||
mAppLink.setKey(KEY_APP_LINK);
|
mAppLink.setKey(KEY_APP_LINK);
|
||||||
mAppLink.setOrder(500);
|
mAppLink.setOrder(500);
|
||||||
|
Reference in New Issue
Block a user