Description[Android] Fix search engine page crash when users change language
When changeing language setting of phones, Template Url Service
will be changed and unloaded. Then when search engine setting page back
to active from background, it fires a NoPointerException for popluating
the Listview when Template Url Service is still loading.
To fix that, check whether Template Url Service is already loaded before
populating UI, if not, force it to load and meanwhile, close the
fragment to prevent from crash.
BUG=652170
Committed: https://crrev.com/e8efd3e036c037831a92d41604004b61b0d9f307
Cr-Commit-Position: refs/heads/master@{#422660}
Patch Set 1 #
Total comments: 2
Patch Set 2 : update based on Theresa's comment. #
Total comments: 1
Patch Set 3 : Add comment. #Messages
Total messages: 11 (4 generated)
|