Commit a7a67cb9 authored by ltian's avatar ltian Committed by Commit bot

[Android] Sync location access permmission change when going back to the search engine setting page

Force Listview to update in onResume() to synchronize with any change of
location access permission of search engines.

BUG=652204

Review-Url: https://codereview.chromium.org/2390113002
Cr-Commit-Position: refs/heads/master@{#422827}
parent f4b335b9
......@@ -102,4 +102,13 @@ public class SearchEnginePreference extends PreferenceFragment
updateBottombarDivider();
}
}
@Override
public void onResume() {
super.onResume();
/**
* Handle UI update when location setting for a search engine is changed.
*/
mSearchEngineAdapter.notifyDataSetChanged();
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment