Bug 1299350 - If there is a homepage, show it at the end of the wizard. r=rnewman a=lizzard
--- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
@@ -2667,17 +2667,18 @@ public class BrowserApp extends GeckoApp
if (mFirstrunAnimationContainer == null) {
final ViewStub firstrunPagerStub = (ViewStub) findViewById(R.id.firstrun_pager_stub);
mFirstrunAnimationContainer = (FirstrunAnimationContainer) firstrunPagerStub.inflate();
mFirstrunAnimationContainer.load(getApplicationContext(), getSupportFragmentManager());
mFirstrunAnimationContainer.registerOnFinishListener(new FirstrunAnimationContainer.OnFinishListener() {
@Override
public void onFinish() {
- if (mFirstrunAnimationContainer.showBrowserHint()) {
+ if (mFirstrunAnimationContainer.showBrowserHint() &&
+ TextUtils.isEmpty(getHomepage())) {
enterEditingMode();
}
}
});
}
mHomeScreenContainer.setVisibility(View.VISIBLE);
}