Merge "Small fixes to screenshot->long screenshot transition" into sc-dev am: dc30c8fce7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15113764 Change-Id: I193291ac40740e426f2ce4c39af8a1cf110e55dd
This commit is contained in:
@@ -78,6 +78,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="matrix"
|
||||
android:visibility="invisible"
|
||||
app:layout_constraintTop_toTopOf="@id/preview"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -200,7 +200,6 @@ public class LongScreenshotActivity extends Activity {
|
||||
/ (float) mLongScreenshot.getHeight());
|
||||
|
||||
mEnterTransitionView.setImageDrawable(drawable);
|
||||
|
||||
mEnterTransitionView.getViewTreeObserver().addOnPreDrawListener(
|
||||
new ViewTreeObserver.OnPreDrawListener() {
|
||||
@Override
|
||||
@@ -220,7 +219,6 @@ public class LongScreenshotActivity extends Activity {
|
||||
mCropView.animateEntrance();
|
||||
mCropView.setVisibility(View.VISIBLE);
|
||||
setButtonsEnabled(true);
|
||||
mEnterTransitionView.setVisibility(View.GONE);
|
||||
});
|
||||
});
|
||||
return true;
|
||||
|
||||
@@ -690,12 +690,8 @@ public class ScreenshotController {
|
||||
intent.setFlags(
|
||||
Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
|
||||
Pair<ActivityOptions, ExitTransitionCoordinator> transition =
|
||||
ActivityOptions.startSharedElementAnimation(mWindow,
|
||||
new ScreenshotExitTransitionCallbacksSupplier(false).get(),
|
||||
null);
|
||||
transition.second.startExit();
|
||||
mContext.startActivity(intent, transition.first.toBundle());
|
||||
mContext.startActivity(intent,
|
||||
ActivityOptions.makeCustomAnimation(mContext, 0, 0).toBundle());
|
||||
RemoteAnimationAdapter runner = new RemoteAnimationAdapter(
|
||||
SCREENSHOT_REMOTE_RUNNER, 0, 0);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user