Merge "Eliminate the injection flicker while navigating back" into udc-dev am: bfd3c051be

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21659505

Change-Id: I36b4b51306b04c6e872c95a350cc53b668659d74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jason Chiu
2023-03-02 03:15:14 +00:00
committed by Automerger Merge Worker

View File

@@ -260,7 +260,9 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
META_DATA_PREFERENCE_TITLE_URI)) { META_DATA_PREFERENCE_TITLE_URI)) {
// Set a placeholder title before starting to fetch real title, this is necessary // Set a placeholder title before starting to fetch real title, this is necessary
// to avoid preference height change. // to avoid preference height change.
if (preference.getTitle() == null) {
preference.setTitle(R.string.summary_placeholder); preference.setTitle(R.string.summary_placeholder);
}
final Uri uri = TileUtils.getCompleteUri(tile, META_DATA_PREFERENCE_TITLE_URI, final Uri uri = TileUtils.getCompleteUri(tile, META_DATA_PREFERENCE_TITLE_URI,
METHOD_GET_DYNAMIC_TITLE); METHOD_GET_DYNAMIC_TITLE);
@@ -288,7 +290,9 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
&& tile.getMetaData().containsKey(META_DATA_PREFERENCE_SUMMARY_URI)) { && tile.getMetaData().containsKey(META_DATA_PREFERENCE_SUMMARY_URI)) {
// Set a placeholder summary before starting to fetch real summary, this is necessary // Set a placeholder summary before starting to fetch real summary, this is necessary
// to avoid preference height change. // to avoid preference height change.
if (preference.getSummary() == null) {
preference.setSummary(R.string.summary_placeholder); preference.setSummary(R.string.summary_placeholder);
}
final Uri uri = TileUtils.getCompleteUri(tile, META_DATA_PREFERENCE_SUMMARY_URI, final Uri uri = TileUtils.getCompleteUri(tile, META_DATA_PREFERENCE_SUMMARY_URI,
METHOD_GET_DYNAMIC_SUMMARY); METHOD_GET_DYNAMIC_SUMMARY);