• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

Révision28b05910d8f796dd1423b4b20196b2edad46795f (tree)
l'heure2020-09-24 21:32:20
AuteurTreeHugger Robot <treehugger-gerrit@goog...>
CommiterAndroid (Google) Code Review

Message de Log

Merge "Guard against flickering of dynamic injection items" into rvc-qpr-dev

Change Summary

Modification

--- a/src/com/android/settings/dashboard/DashboardFeatureProviderImpl.java
+++ b/src/com/android/settings/dashboard/DashboardFeatureProviderImpl.java
@@ -248,7 +248,9 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
248248 final Map<String, IContentProvider> providerMap = new ArrayMap<>();
249249 final String titleFromUri = TileUtils.getTextFromUri(
250250 mContext, uri, providerMap, META_DATA_PREFERENCE_TITLE);
251- ThreadUtils.postOnMainThread(() -> preference.setTitle(titleFromUri));
251+ if (!TextUtils.equals(titleFromUri, preference.getTitle())) {
252+ ThreadUtils.postOnMainThread(() -> preference.setTitle(titleFromUri));
253+ }
252254 });
253255 }
254256
@@ -277,7 +279,9 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
277279 final Map<String, IContentProvider> providerMap = new ArrayMap<>();
278280 final String summaryFromUri = TileUtils.getTextFromUri(
279281 mContext, uri, providerMap, META_DATA_PREFERENCE_SUMMARY);
280- ThreadUtils.postOnMainThread(() -> preference.setSummary(summaryFromUri));
282+ if (!TextUtils.equals(summaryFromUri, preference.getSummary())) {
283+ ThreadUtils.postOnMainThread(() -> preference.setSummary(summaryFromUri));
284+ }
281285 });
282286 }
283287