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

Side by Side Diff: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/preferences/MultilineCheckBoxPreference.java

Issue 29441558: Issue 5243 - Clipped text across languages (Closed)
Patch Set: Fixed layout name and bracket in preferences_main.xml Created May 31, 2017, 1:58 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 package org.adblockplus.sbrowser.contentblocker.preferences;
19
20 import org.adblockplus.sbrowser.contentblocker.util.PreferenceUtils;
21
22 import android.content.Context;
23 import android.preference.CheckBoxPreference;
24 import android.util.AttributeSet;
25 import android.view.View;
26
27 /**
28 * Represents a Checkbox element in a preference menu.
29 * The title of the Checkbox can be larger than the view.
30 * In this case, it will be displayed in 2 or more lines.
31 * The default behavior of the class CheckBoxPreference
32 * doesn't wrap the title.
33 */
34
35 public class MultilineCheckBoxPreference extends CheckBoxPreference
36 {
37 public MultilineCheckBoxPreference(Context context)
38 {
39 super(context);
40 }
41
42 public MultilineCheckBoxPreference(Context context, AttributeSet attrs)
43 {
44 super(context, attrs);
45 }
46
47 public MultilineCheckBoxPreference(Context context, AttributeSet attrs, int de fStyle)
48 {
49 super(context, attrs, defStyle);
50 }
51
52 @Override
53 protected void onBindView(View view)
54 {
55 super.onBindView(view);
56 PreferenceUtils.setMultilineTitle(view);
57 }
58 }
OLDNEW

Powered by Google App Engine
This is Rietveld