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

Commit 03b14a6d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Generating state-changed-to-home event for Widgets->Home transition"...

Merge "Generating state-changed-to-home event for Widgets->Home transition" into ub-launcher3-master
parents f4b5bcac 9f48a8ec
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
 */
package com.android.launcher3.widget;

import static com.android.launcher3.testing.TestProtocol.NORMAL_STATE_ORDINAL;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
@@ -37,6 +39,7 @@ import com.android.launcher3.Launcher;
import com.android.launcher3.LauncherAppState;
import com.android.launcher3.LauncherAppWidgetHost.ProviderChangedListener;
import com.android.launcher3.R;
import com.android.launcher3.compat.AccessibilityManagerCompat;
import com.android.launcher3.views.RecyclerViewFastScroller;
import com.android.launcher3.views.TopRoundedCornerView;

@@ -247,4 +250,10 @@ public class WidgetsFullSheet extends BaseWidgetSheet
        anim.play(ObjectAnimator.ofFloat(mRecyclerView, ALPHA, 0.5f));
        return anim;
    }

    @Override
    protected void onCloseComplete() {
        super.onCloseComplete();
        AccessibilityManagerCompat.sendStateEventToTest(getContext(), NORMAL_STATE_ORDINAL);
    }
}