Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41c07458 authored by Jonathan Miranda's avatar Jonathan Miranda Committed by Android (Google) Code Review
Browse files

Merge "Fix startPostponedEnterTransition being called too early."

parents 963b83ce 9d85fd4d
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -431,20 +431,23 @@ public class ChooserActivity extends ResolverActivity implements
        }

        private void maybeHideContentPreview() {
            if (!mAtLeastOneLoaded && mHideParentOnFail) {
            if (!mAtLeastOneLoaded) {
                if (mHideParentOnFail) {
                    Log.i(TAG, "Hiding image preview area. Timed out waiting for preview to load"
                            + " within " + mImageLoadTimeoutMillis + "ms.");
                    collapseParentView();
                    if (shouldShowTabs()) {
                        hideStickyContentPreview();
                    } else if (mChooserMultiProfilePagerAdapter.getCurrentRootAdapter() != null) {
                    mChooserMultiProfilePagerAdapter.getCurrentRootAdapter().hideContentPreview();
                        mChooserMultiProfilePagerAdapter.getCurrentRootAdapter()
                                .hideContentPreview();
                    }
                    mHideParentOnFail = false;
                }
                mRemoveSharedElements = true;
                startPostponedEnterTransition();
            }
        }

        private void collapseParentView() {
            // This will effectively hide the content preview row by forcing the height