New issue
Advanced search Search tips

Issue 719867 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: ----



Sign in to add a comment

Android Chrome custom tabs fallback

Reported by am...@shoppingwish.in, May 9 2017

Issue description

I am implementing fallback chrome custom tabs

I was referring to github sample has some custom fallback implementation. I didn't get why it is required.

I did following for handling fallback and is working fine.

  try {
        CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
        builder.setToolbarColor(ContextCompat.getColor(context, R.color.appthemecolor));
        CustomTabsIntent customTabsIntent = builder.build();
        customTabsIntent.launchUrl(context, Uri.parse(url));
    } catch (ActivityNotFoundException e) {
        e.printStackTrace();
        Intent intent = new Intent(context, WebviewActivity.class);
        intent.putExtra(WebviewActivity.EXTRA_URL, url);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
        context.startActivity(intent);
    }

Any idea why such complex implementation is required for handling fallback?

using following version of support librarycompile 'com.android.support:customtabs:25.3.1'
 
Components: UI>Browser>Mobile>CustomTabs
Status: WontFix (was: Unconfirmed)
***Bulk edit***

Closing due to inactivity, please feel free to reopen if needed.

Sign in to add a comment