Refresh Storage UI atomically.

Test: builds
Bug: 29275971
Change-Id: I0f5131631ae12bc57e66545513ad60b7cbcd179b
This commit is contained in:
Jeff Sharkey
2016-11-15 14:06:44 -07:00
parent 05f799f18b
commit b7fc7ade40

View File

@@ -152,7 +152,7 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index
}
}
private void refresh() {
private synchronized void refresh() {
final Context context = getPrefContext();
getPreferenceScreen().removeAll();