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 16 matching lines...) Expand all Loading... |
27 import java.util.Map; | 27 import java.util.Map; |
28 | 28 |
29 import org.mozilla.gecko.R; | 29 import org.mozilla.gecko.R; |
30 | 30 |
31 import android.content.Context; | 31 import android.content.Context; |
32 import android.content.DialogInterface; | 32 import android.content.DialogInterface; |
33 import android.content.DialogInterface.OnKeyListener; | 33 import android.content.DialogInterface.OnKeyListener; |
34 import android.graphics.Typeface; | 34 import android.graphics.Typeface; |
35 import android.os.Bundle; | 35 import android.os.Bundle; |
36 import android.support.v4.app.DialogFragment; | 36 import android.support.v4.app.DialogFragment; |
37 import android.text.Html; | |
38 import android.util.Log; | 37 import android.util.Log; |
39 import android.view.KeyEvent; | 38 import android.view.KeyEvent; |
40 import android.view.LayoutInflater; | 39 import android.view.LayoutInflater; |
41 import android.view.View; | 40 import android.view.View; |
42 import android.view.View.OnClickListener; | 41 import android.view.View.OnClickListener; |
43 import android.view.ViewGroup; | 42 import android.view.ViewGroup; |
44 import android.view.ViewGroup.LayoutParams; | 43 import android.view.ViewGroup.LayoutParams; |
45 import android.view.Window; | 44 import android.view.Window; |
46 import android.widget.Button; | 45 import android.widget.Button; |
47 import android.widget.LinearLayout; | 46 import android.widget.LinearLayout; |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } | 223 } |
225 } | 224 } |
226 } | 225 } |
227 | 226 |
228 private void setButtonText(final View view, final int viewId, final int resId) | 227 private void setButtonText(final View view, final int viewId, final int resId) |
229 { | 228 { |
230 final Button button = (Button) view.findViewById(viewId); | 229 final Button button = (Button) view.findViewById(viewId); |
231 button.setText(this.getString(resId)); | 230 button.setText(this.getString(resId)); |
232 } | 231 } |
233 } | 232 } |
LEFT | RIGHT |