Issue metadata
Sign in to add a comment
|
Chrome Custom Tab wont auto close when redirecting back to the same activity that invoked the custom tabs
Reported by
vardaan...@gmail.com,
Mar 1 2017
|
||||||||||||||||||||
Issue description
Device name: Any Device
From "Settings > About Chrome"
Application version:
Operating system:
URLs (if applicable):
Steps to reproduce the problem:
1. Made an android app with the following activity manifest:
<activity
android:name="com.a.b.c.abcActivity"
android:allowTaskReparenting="true"
android:configChanges="keyboardHidden|orientation|keyboard|screenSize"
android:launchMode="singleTask"
android:noHistory="true"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
<data android:scheme="abcd-${applicationId}" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
2. From within this same activity invoked a chrome custom tab using: CustomTabsIntent customTabsIntent = new CustomTabsIntent.Builder()
.setShowTitle(true)
.setToolbarColor(getTitleBarBackgroundColor())
.setStartAnimations(this, android.R.anim.slide_in_left, android.R.anim.slide_out_right)
.setExitAnimations(this, android.R.anim.slide_in_left, android.R.anim.slide_out_right)
.build();
customTabsIntent.intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_SINGLE_TOP);
customTabsIntent.launchUrl(this, Uri.parse(url));
3. open a webpage within the custom tab that attempts to redirect back to the same activity that invoked the custom tab
Expected result: The chrome custom tab should close
Actual result: when the web page opened within the custom tab attempts to redirect back to app, the redirect succeeds (as logs are produced) but the custom tab does not close and always remains on top unless closed by the user
,
Mar 2 2017
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 Deleted