Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: mobile/android/base/BrowserApp.java

Issue 29322349: Issue 2774 - Make the first run page work again (Closed)
Patch Set: Returning, naming Created July 20, 2015, 4:47 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mobile/android/base/BrowserApp.java
diff --git a/mobile/android/base/BrowserApp.java b/mobile/android/base/BrowserApp.java
index 3c729296fdedd10ae2496f13ef9d6164770880a1..821ac6df3337cf09c3e2368481fe90ef3a7819eb 100644
--- a/mobile/android/base/BrowserApp.java
+++ b/mobile/android/base/BrowserApp.java
@@ -101,6 +101,7 @@ import android.nfc.NfcEvent;
import android.os.Build;
import android.os.Bundle;
import android.os.StrictMode;
+import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.text.TextUtils;
@@ -2449,6 +2450,16 @@ public class BrowserApp extends GeckoApp
}
private void showFirstrunPager() {
+ final DialogFragment dialog = new org.adblockplus.browser.StartPane();
+ dialog.show(getSupportFragmentManager(), "start_pane");
+
+ // Exiting here because we want to show our first run page instead of Mozilla's
+ // see https://issues.adblockplus.org/ticket/2774
+ if (true)
+ {
+ return;
+ }
+
if (mFirstrunPane == null) {
final ViewStub firstrunPagerStub = (ViewStub) findViewById(R.id.firstrun_pager_stub);
mFirstrunPane = (FirstrunPane) firstrunPagerStub.inflate();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld