Skip to content

Commit 1895bb3

Browse files
Fix - Unable to Access Privacy Policy (commons-app#5534)
* Fix - Unable to Access Privacy Policy * cleanup
1 parent f9090b0 commit 1895bb3

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/src/main/java/fr/free/nrw/commons/Utils.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import android.text.style.UnderlineSpan;
1111
import android.view.View;
1212
import android.widget.TextView;
13-
import android.widget.Toast;
1413

1514
import androidx.annotation.NonNull;
1615
import androidx.browser.customtabs.CustomTabColorSchemeParams;
@@ -137,12 +136,6 @@ public static void rateApp(Context context) {
137136
*/
138137
public static void handleWebUrl(Context context, Uri url) {
139138
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-
}
146139

147140
final CustomTabColorSchemeParams color = new CustomTabColorSchemeParams.Builder()
148141
.setToolbarColor(ContextCompat.getColor(context, R.color.primaryColor))

0 commit comments

Comments
 (0)