Bug 860326 - Don't update BrowserToolbar after editing a top site on about:home. r=wesj

This commit is contained in:
Margaret Leibovic 2013-04-16 10:39:16 -07:00
Родитель 43f3047662
Коммит 82e8d55330
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -801,7 +801,12 @@ abstract public class BrowserApp extends GeckoApp
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
String url = resultCode == Activity.RESULT_OK ? data.getStringExtra(AwesomeBar.URL_KEY) : null;
String url = null;
// Don't update the url in the toolbar if the activity was just launched to pick a site.
boolean pickSite = data.getStringExtra(AwesomeBar.TARGET_KEY).equals(AwesomeBar.Target.PICK_SITE.toString());
if (resultCode == Activity.RESULT_OK && !pickSite) {
url = data.getStringExtra(AwesomeBar.URL_KEY);
}
mBrowserToolbar.fromAwesomeBarSearch(url);
}