LEFT | RIGHT |
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 Loading... |
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 Loading... |
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 } |
LEFT | RIGHT |