mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix - Unable to Access Privacy Policy (#5534)
* Fix - Unable to Access Privacy Policy * cleanup
This commit is contained in:
parent
f9090b0c2c
commit
1895bb3ec2
1 changed files with 0 additions and 7 deletions
|
|
@ -10,7 +10,6 @@ import android.text.SpannableString;
|
||||||
import android.text.style.UnderlineSpan;
|
import android.text.style.UnderlineSpan;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.browser.customtabs.CustomTabColorSchemeParams;
|
import androidx.browser.customtabs.CustomTabColorSchemeParams;
|
||||||
|
|
@ -137,12 +136,6 @@ public class Utils {
|
||||||
*/
|
*/
|
||||||
public static void handleWebUrl(Context context, Uri url) {
|
public static void handleWebUrl(Context context, Uri url) {
|
||||||
Timber.d("Launching web url %s", url.toString());
|
Timber.d("Launching web url %s", url.toString());
|
||||||
Intent browserIntent = new Intent(Intent.ACTION_VIEW, url);
|
|
||||||
if (browserIntent.resolveActivity(context.getPackageManager()) == null) {
|
|
||||||
Toast toast = Toast.makeText(context, context.getString(R.string.no_web_browser), LENGTH_SHORT);
|
|
||||||
toast.show();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
final CustomTabColorSchemeParams color = new CustomTabColorSchemeParams.Builder()
|
final CustomTabColorSchemeParams color = new CustomTabColorSchemeParams.Builder()
|
||||||
.setToolbarColor(ContextCompat.getColor(context, R.color.primaryColor))
|
.setToolbarColor(ContextCompat.getColor(context, R.color.primaryColor))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue