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

Side by Side Diff: src/org/adblockplus/sbrowser/contentblocker/UrlInputOpenerPreference.java

Issue 29422622: Issue 5173 - ABP Samsung Internet fails to initialise on Android 5.0.1 (Closed)
Patch Set: Created April 26, 2017, 1:57 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 public void setIcon(@DrawableRes int iconResId) 125 public void setIcon(@DrawableRes int iconResId)
126 { 126 {
127 final Drawable drawable = ContextCompat.getDrawable(getContext(), iconResId) ; 127 final Drawable drawable = ContextCompat.getDrawable(getContext(), iconResId) ;
128 setIcon(drawable); 128 setIcon(drawable);
129 } 129 }
130 130
131 public void setIcon(Drawable icon) 131 public void setIcon(Drawable icon)
132 { 132 {
133 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) 133 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
134 { 134 {
135 super.setIcon(android.R.drawable.ic_menu_add); 135 super.setIcon(icon);
136 } 136 }
137 } 137 }
138 138
139 public void setOnUrlReadyListener(OnUrlReadyListener listener) 139 public void setOnUrlReadyListener(OnUrlReadyListener listener)
140 { 140 {
141 this.onUrlReadyListener = listener; 141 this.onUrlReadyListener = listener;
142 } 142 }
143 143
144 private boolean isValidUrl() 144 private boolean isValidUrl()
145 { 145 {
(...skipping 11 matching lines...) Expand all
157 { 157 {
158 mAlertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(enabled); 158 mAlertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setEnabled(enabled);
159 } 159 }
160 } 160 }
161 161
162 public interface OnUrlReadyListener 162 public interface OnUrlReadyListener
163 { 163 {
164 void onUrlReady(String url); 164 void onUrlReady(String url);
165 } 165 }
166 } 166 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld