Loading packages/SystemUI/res/anim/recents_from_launcher_enter.xml +3 −3 Original line number Diff line number Diff line Loading @@ -19,10 +19,10 @@ <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false" android:zAdjustment="top"> android:zAdjustment="normal"> <alpha android:fromAlpha="1.0" android:toAlpha="1.0" android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true" android:interpolator="@android:interpolator/fast_out_slow_in" android:duration="100"/> android:interpolator="@android:interpolator/linear" android:duration="200"/> </set> packages/SystemUI/res/anim/recents_from_launcher_exit.xml +3 −3 Original line number Diff line number Diff line Loading @@ -19,10 +19,10 @@ <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false" android:zAdjustment="normal"> android:zAdjustment="top"> <alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true" android:interpolator="@android:interpolator/fast_out_slow_in" android:duration="100"/> android:interpolator="@android:interpolator/linear_out_slow_in" android:duration="200"/> </set> packages/SystemUI/res/anim/recents_to_launcher_enter.xml +2 −2 Original line number Diff line number Diff line Loading @@ -23,6 +23,6 @@ <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true" android:interpolator="@android:interpolator/fast_out_slow_in" android:duration="150"/> android:interpolator="@android:interpolator/fast_out_linear_in" android:duration="200"/> </set> packages/SystemUI/res/anim/recents_to_launcher_exit.xml +2 −2 Original line number Diff line number Diff line Loading @@ -23,6 +23,6 @@ <alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true" android:interpolator="@android:interpolator/fast_out_slow_in" android:duration="150"/> android:interpolator="@android:interpolator/linear_out_slow_in" android:duration="200"/> </set> packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +33 −26 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Otherwise, just finish the activity without launching any other activities ReferenceCountedTrigger exitTrigger = new ReferenceCountedTrigger(context, null, mFinishRunnable, null); mRecentsView.startOnExitAnimation( mRecentsView.startExitToHomeAnimation( new ViewAnimation.TaskViewExitContext(exitTrigger)); } } Loading @@ -129,7 +129,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } } else if (action.equals(RecentsService.ACTION_START_ENTER_ANIMATION)) { // Try and start the enter animation (or restart it on configuration changed) mRecentsView.startOnEnterAnimation(new ViewAnimation.TaskViewEnterContext(mFullScreenshotView)); mRecentsView.startEnterRecentsAnimation(new ViewAnimation.TaskViewEnterContext(mFullScreenshotView)); // Call our callback onEnterAnimationTriggered(); } Loading Loading @@ -162,6 +162,13 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView /** Updates the set of recent tasks */ void updateRecentsTasks(Intent launchIntent) { RecentsTaskLoader loader = RecentsTaskLoader.getInstance(); SpaceNode root = loader.reload(this, Constants.Values.RecentsTaskLoader.PreloadFirstTasksCount); ArrayList<TaskStack> stacks = root.getStacks(); if (!stacks.isEmpty()) { mRecentsView.setBSP(root); } // Update the configuration based on the launch intent mConfig.launchedFromHome = launchIntent.getBooleanExtra( AlternateRecentsComponent.EXTRA_FROM_HOME, false); Loading @@ -171,13 +178,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView AlternateRecentsComponent.EXTRA_FROM_APP_FULL_SCREENSHOT, false); mConfig.launchedWithAltTab = launchIntent.getBooleanExtra( AlternateRecentsComponent.EXTRA_TRIGGERED_FROM_ALT_TAB, false); RecentsTaskLoader loader = RecentsTaskLoader.getInstance(); SpaceNode root = loader.reload(this, Constants.Values.RecentsTaskLoader.PreloadFirstTasksCount); ArrayList<TaskStack> stacks = root.getStacks(); if (!stacks.isEmpty()) { mRecentsView.setBSP(root); } mConfig.launchedWithNoRecentTasks = !root.hasTasks(); if (mConfig.shouldAnimateNavBarScrim()) { // Hide the scrim if we animate into Recents with window transitions Loading @@ -188,14 +189,12 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } // Add the default no-recents layout if (stacks.size() == 1 && stacks.get(0).getTaskCount() == 0) { if (mConfig.launchedWithNoRecentTasks) { mEmptyView.setVisibility(View.VISIBLE); mEmptyView.setBackgroundColor(0x80000000); } else { mEmptyView.setVisibility(View.GONE); } // Dim the background mRecentsView.setBackgroundColor(0x80000000); } /** Attempts to allocate and bind the search bar app widget */ Loading Loading @@ -284,7 +283,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // We really shouldn't hit this, but if we do, just animate out (aka. finish) ReferenceCountedTrigger exitTrigger = new ReferenceCountedTrigger(this, null, mFinishRunnable, null); mRecentsView.startOnExitAnimation( mRecentsView.startExitToHomeAnimation( new ViewAnimation.TaskViewExitContext(exitTrigger)); } } Loading Loading @@ -376,7 +375,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView void onConfigurationChange() { // Try and start the enter animation (or restart it on configuration changed) mRecentsView.startOnEnterAnimation(new ViewAnimation.TaskViewEnterContext(mFullScreenshotView)); mRecentsView.startEnterRecentsAnimation(new ViewAnimation.TaskViewEnterContext(mFullScreenshotView)); // Call our callback onEnterAnimationTriggered(); } Loading Loading @@ -547,7 +546,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Just start the animation out of recents ReferenceCountedTrigger exitTrigger = new ReferenceCountedTrigger(this, null, mFinishRunnable, null); mRecentsView.startOnExitAnimation( mRecentsView.startExitToHomeAnimation( new ViewAnimation.TaskViewExitContext(exitTrigger)); } else { // Otherwise, try and launch the first task Loading @@ -555,7 +554,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // If there are no tasks, then just finish recents ReferenceCountedTrigger exitTrigger = new ReferenceCountedTrigger(this, null, mFinishRunnable, null); mRecentsView.startOnExitAnimation( mRecentsView.startExitToHomeAnimation( new ViewAnimation.TaskViewExitContext(exitTrigger)); } } Loading @@ -567,12 +566,25 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Fade in the scrim if (mConfig.shouldAnimateNavBarScrim() && mConfig.hasNavBarScrim()) { mNavBarScrimView.setVisibility(View.VISIBLE); mNavBarScrimView.setAlpha(0f); mNavBarScrimView.animate().alpha(1f) mNavBarScrimView.setTranslationY(mNavBarScrimView.getMeasuredHeight()); mNavBarScrimView.animate() .translationY(0) .setStartDelay(mConfig.taskBarEnterAnimDelay) .setDuration(mConfig.navBarScrimEnterDuration) .setInterpolator(mConfig.quintOutInterpolator) .start(); } } @Override public void onExitAnimationTriggered() { // Fade out the scrim if (mConfig.shouldAnimateNavBarScrim() && mConfig.hasNavBarScrim()) { mNavBarScrimView.animate() .translationY(mNavBarScrimView.getMeasuredHeight()) .setStartDelay(0) .setDuration(mConfig.taskBarExitAnimDuration) .setInterpolator(mConfig.fastOutSlowInInterpolator) .withLayer() .start(); } } Loading @@ -598,12 +610,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Fade out the scrim if (!isTaskInStackBounds && mConfig.hasNavBarScrim()) { mNavBarScrimView.animate().alpha(0f) .setStartDelay(0) .setDuration(mConfig.taskBarExitAnimDuration) .setInterpolator(mConfig.fastOutSlowInInterpolator) .withLayer() .start(); onExitAnimationTriggered(); } // Mark recents as no longer visible Loading Loading
packages/SystemUI/res/anim/recents_from_launcher_enter.xml +3 −3 Original line number Diff line number Diff line Loading @@ -19,10 +19,10 @@ <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false" android:zAdjustment="top"> android:zAdjustment="normal"> <alpha android:fromAlpha="1.0" android:toAlpha="1.0" android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true" android:interpolator="@android:interpolator/fast_out_slow_in" android:duration="100"/> android:interpolator="@android:interpolator/linear" android:duration="200"/> </set>
packages/SystemUI/res/anim/recents_from_launcher_exit.xml +3 −3 Original line number Diff line number Diff line Loading @@ -19,10 +19,10 @@ <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false" android:zAdjustment="normal"> android:zAdjustment="top"> <alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true" android:interpolator="@android:interpolator/fast_out_slow_in" android:duration="100"/> android:interpolator="@android:interpolator/linear_out_slow_in" android:duration="200"/> </set>
packages/SystemUI/res/anim/recents_to_launcher_enter.xml +2 −2 Original line number Diff line number Diff line Loading @@ -23,6 +23,6 @@ <alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true" android:interpolator="@android:interpolator/fast_out_slow_in" android:duration="150"/> android:interpolator="@android:interpolator/fast_out_linear_in" android:duration="200"/> </set>
packages/SystemUI/res/anim/recents_to_launcher_exit.xml +2 −2 Original line number Diff line number Diff line Loading @@ -23,6 +23,6 @@ <alpha android:fromAlpha="1.0" android:toAlpha="0.0" android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true" android:interpolator="@android:interpolator/fast_out_slow_in" android:duration="150"/> android:interpolator="@android:interpolator/linear_out_slow_in" android:duration="200"/> </set>
packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java +33 −26 Original line number Diff line number Diff line Loading @@ -117,7 +117,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Otherwise, just finish the activity without launching any other activities ReferenceCountedTrigger exitTrigger = new ReferenceCountedTrigger(context, null, mFinishRunnable, null); mRecentsView.startOnExitAnimation( mRecentsView.startExitToHomeAnimation( new ViewAnimation.TaskViewExitContext(exitTrigger)); } } Loading @@ -129,7 +129,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } } else if (action.equals(RecentsService.ACTION_START_ENTER_ANIMATION)) { // Try and start the enter animation (or restart it on configuration changed) mRecentsView.startOnEnterAnimation(new ViewAnimation.TaskViewEnterContext(mFullScreenshotView)); mRecentsView.startEnterRecentsAnimation(new ViewAnimation.TaskViewEnterContext(mFullScreenshotView)); // Call our callback onEnterAnimationTriggered(); } Loading Loading @@ -162,6 +162,13 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView /** Updates the set of recent tasks */ void updateRecentsTasks(Intent launchIntent) { RecentsTaskLoader loader = RecentsTaskLoader.getInstance(); SpaceNode root = loader.reload(this, Constants.Values.RecentsTaskLoader.PreloadFirstTasksCount); ArrayList<TaskStack> stacks = root.getStacks(); if (!stacks.isEmpty()) { mRecentsView.setBSP(root); } // Update the configuration based on the launch intent mConfig.launchedFromHome = launchIntent.getBooleanExtra( AlternateRecentsComponent.EXTRA_FROM_HOME, false); Loading @@ -171,13 +178,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView AlternateRecentsComponent.EXTRA_FROM_APP_FULL_SCREENSHOT, false); mConfig.launchedWithAltTab = launchIntent.getBooleanExtra( AlternateRecentsComponent.EXTRA_TRIGGERED_FROM_ALT_TAB, false); RecentsTaskLoader loader = RecentsTaskLoader.getInstance(); SpaceNode root = loader.reload(this, Constants.Values.RecentsTaskLoader.PreloadFirstTasksCount); ArrayList<TaskStack> stacks = root.getStacks(); if (!stacks.isEmpty()) { mRecentsView.setBSP(root); } mConfig.launchedWithNoRecentTasks = !root.hasTasks(); if (mConfig.shouldAnimateNavBarScrim()) { // Hide the scrim if we animate into Recents with window transitions Loading @@ -188,14 +189,12 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView } // Add the default no-recents layout if (stacks.size() == 1 && stacks.get(0).getTaskCount() == 0) { if (mConfig.launchedWithNoRecentTasks) { mEmptyView.setVisibility(View.VISIBLE); mEmptyView.setBackgroundColor(0x80000000); } else { mEmptyView.setVisibility(View.GONE); } // Dim the background mRecentsView.setBackgroundColor(0x80000000); } /** Attempts to allocate and bind the search bar app widget */ Loading Loading @@ -284,7 +283,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // We really shouldn't hit this, but if we do, just animate out (aka. finish) ReferenceCountedTrigger exitTrigger = new ReferenceCountedTrigger(this, null, mFinishRunnable, null); mRecentsView.startOnExitAnimation( mRecentsView.startExitToHomeAnimation( new ViewAnimation.TaskViewExitContext(exitTrigger)); } } Loading Loading @@ -376,7 +375,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView void onConfigurationChange() { // Try and start the enter animation (or restart it on configuration changed) mRecentsView.startOnEnterAnimation(new ViewAnimation.TaskViewEnterContext(mFullScreenshotView)); mRecentsView.startEnterRecentsAnimation(new ViewAnimation.TaskViewEnterContext(mFullScreenshotView)); // Call our callback onEnterAnimationTriggered(); } Loading Loading @@ -547,7 +546,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Just start the animation out of recents ReferenceCountedTrigger exitTrigger = new ReferenceCountedTrigger(this, null, mFinishRunnable, null); mRecentsView.startOnExitAnimation( mRecentsView.startExitToHomeAnimation( new ViewAnimation.TaskViewExitContext(exitTrigger)); } else { // Otherwise, try and launch the first task Loading @@ -555,7 +554,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // If there are no tasks, then just finish recents ReferenceCountedTrigger exitTrigger = new ReferenceCountedTrigger(this, null, mFinishRunnable, null); mRecentsView.startOnExitAnimation( mRecentsView.startExitToHomeAnimation( new ViewAnimation.TaskViewExitContext(exitTrigger)); } } Loading @@ -567,12 +566,25 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Fade in the scrim if (mConfig.shouldAnimateNavBarScrim() && mConfig.hasNavBarScrim()) { mNavBarScrimView.setVisibility(View.VISIBLE); mNavBarScrimView.setAlpha(0f); mNavBarScrimView.animate().alpha(1f) mNavBarScrimView.setTranslationY(mNavBarScrimView.getMeasuredHeight()); mNavBarScrimView.animate() .translationY(0) .setStartDelay(mConfig.taskBarEnterAnimDelay) .setDuration(mConfig.navBarScrimEnterDuration) .setInterpolator(mConfig.quintOutInterpolator) .start(); } } @Override public void onExitAnimationTriggered() { // Fade out the scrim if (mConfig.shouldAnimateNavBarScrim() && mConfig.hasNavBarScrim()) { mNavBarScrimView.animate() .translationY(mNavBarScrimView.getMeasuredHeight()) .setStartDelay(0) .setDuration(mConfig.taskBarExitAnimDuration) .setInterpolator(mConfig.fastOutSlowInInterpolator) .withLayer() .start(); } } Loading @@ -598,12 +610,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView // Fade out the scrim if (!isTaskInStackBounds && mConfig.hasNavBarScrim()) { mNavBarScrimView.animate().alpha(0f) .setStartDelay(0) .setDuration(mConfig.taskBarExitAnimDuration) .setInterpolator(mConfig.fastOutSlowInInterpolator) .withLayer() .start(); onExitAnimationTriggered(); } // Mark recents as no longer visible Loading