Skip to content

Commit a035189

Browse files
authored
Merge pull request #129 from okta/fix_cct_start_animation
Fix CCT start animation.
2 parents fb9fac4 + 7e8eebb commit a035189

6 files changed

Lines changed: 8 additions & 22 deletions

File tree

app/src/main/java/com/okta/oidc/example/PlainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ public void onError(@Nullable String msg,
425425
.withEncryptionManager(mCurrentEncryptionManager)
426426
.setRequireHardwareBackedKeyStore(!isEmulator)
427427
.withTabColor(0)
428-
.withStartAnimation(R.anim.pull_in_bottom, R.anim.push_out_right)
429-
.withExitAnimation(R.anim.push_out_bottom, R.anim.pull_in_bottom)
428+
.withStartAnimation(R.anim.pull_in_bottom, R.anim.push_out_bottom)
429+
.withExitAnimation(R.anim.pull_in_bottom, R.anim.push_out_bottom)
430430
.withOktaHttpClient(factory.build())
431431
.supportedBrowsers(FIRE_FOX)
432432
.create();
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<translate xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:duration="@integer/screen_transition_duration"
3+
android:duration="@integer/screen_transition_duration_long"
44
android:fromYDelta="100%"
5-
android:toYDelta="0%"
65
android:interpolator="@android:anim/decelerate_interpolator"
7-
/>
6+
android:toYDelta="0%" />

app/src/main/res/anim/pull_in_right.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<translate xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:duration="@integer/screen_transition_duration"
3+
android:duration="@integer/screen_transition_duration_long"
44
android:fromYDelta="0%"
5-
android:toYDelta="100%"
65
android:interpolator="@android:anim/decelerate_interpolator"
7-
/>
6+
android:toYDelta="100%" />

app/src/main/res/anim/push_out_right.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

library/src/main/java/com/okta/oidc/OktaAuthenticationActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ protected Intent createBrowserIntent(String packageName, CustomTabsSession sessi
212212
intentBuilder.setStartAnimations(this,
213213
mCustomTabOptions.getStartEnterResId(),
214214
mCustomTabOptions.getStartExitResId());
215+
overridePendingTransition(mCustomTabOptions.getStartEnterResId(),
216+
mCustomTabOptions.getStartExitResId());
215217
}
216218
if (mCustomTabOptions.getEndEnterResId() != 0 &&
217219
mCustomTabOptions.getEndExitResId() != 0) {

0 commit comments

Comments
 (0)