File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
app/src/main/java/fr/free/nrw/commons Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change 10
10
import android .text .style .UnderlineSpan ;
11
11
import android .view .View ;
12
12
import android .widget .TextView ;
13
- import android .widget .Toast ;
14
13
15
14
import androidx .annotation .NonNull ;
16
15
import androidx .browser .customtabs .CustomTabColorSchemeParams ;
@@ -137,12 +136,6 @@ public static void rateApp(Context context) {
137
136
*/
138
137
public static void handleWebUrl (Context context , Uri url ) {
139
138
Timber .d ("Launching web url %s" , url .toString ());
140
- Intent browserIntent = new Intent (Intent .ACTION_VIEW , url );
141
- if (browserIntent .resolveActivity (context .getPackageManager ()) == null ) {
142
- Toast toast = Toast .makeText (context , context .getString (R .string .no_web_browser ), LENGTH_SHORT );
143
- toast .show ();
144
- return ;
145
- }
146
139
147
140
final CustomTabColorSchemeParams color = new CustomTabColorSchemeParams .Builder ()
148
141
.setToolbarColor (ContextCompat .getColor (context , R .color .primaryColor ))
You can’t perform that action at this time.
0 commit comments