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

Delta Between Two Patch Sets: mobile/android/thirdparty/org/adblockplus/browser/StartPane.java

Issue 29325578: Issue 2938 - Hide the beta community first run slide (Closed)
Left Patch Set: Created Sept. 2, 2015, 3:14 p.m.
Right Patch Set: Mentioned follow-up issue Created Sept. 2, 2015, 3:17 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 import android.view.ViewGroup.LayoutParams; 43 import android.view.ViewGroup.LayoutParams;
44 import android.view.Window; 44 import android.view.Window;
45 import android.widget.Button; 45 import android.widget.Button;
46 import android.widget.LinearLayout; 46 import android.widget.LinearLayout;
47 import android.widget.TextView; 47 import android.widget.TextView;
48 48
49 public class StartPane extends DialogFragment implements OnClickListener, OnKeyL istener 49 public class StartPane extends DialogFragment implements OnClickListener, OnKeyL istener
50 { 50 {
51 private static final String TAG = "AdblockBrowser.StartPane"; 51 private static final String TAG = "AdblockBrowser.StartPane";
52 private int currentStep = 0; 52 private int currentStep = 0;
53 // For now we disable the beta community page,
54 // see https://issues.adblockplus.org/ticket/2937 for a follow-up issue
55 // for detecting whether we are on the beta channel or not
53 private static final boolean SKIP_BETA_COMMUNITY_PAGE = true; 56 private static final boolean SKIP_BETA_COMMUNITY_PAGE = true;
54 private static final HashMap<String, Integer> FONTS = new HashMap<String, Inte ger>(); 57 private static final HashMap<String, Integer> FONTS = new HashMap<String, Inte ger>();
55 private HashMap<String, Typeface> loadedFonts = new HashMap<String, Typeface>( ); 58 private HashMap<String, Typeface> loadedFonts = new HashMap<String, Typeface>( );
56 59
57 private static final int[] BETA_RESOURCE_LIST = 60 private static final int[] BETA_RESOURCE_LIST =
58 { 61 {
59 R.layout.abb_start_pane_step_1, R.string.abb_frp_button_1, 62 R.layout.abb_start_pane_step_1, R.string.abb_frp_button_1,
60 R.layout.abb_start_pane_step_2, R.string.abb_frp_button_2, 63 R.layout.abb_start_pane_step_2, R.string.abb_frp_button_2,
61 R.layout.abb_start_pane_step_3, R.string.abb_frp_button_3 64 R.layout.abb_start_pane_step_3, R.string.abb_frp_button_3
62 }; 65 };
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 236 }
234 } 237 }
235 } 238 }
236 239
237 private void setButtonText(final View view, final int viewId, final int resId) 240 private void setButtonText(final View view, final int viewId, final int resId)
238 { 241 {
239 final Button button = (Button) view.findViewById(viewId); 242 final Button button = (Button) view.findViewById(viewId);
240 button.setText(this.getString(resId)); 243 button.setText(this.getString(resId));
241 } 244 }
242 } 245 }
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld