wear/src/main/java/androidx/wear/widget/ConfirmationOverlay.java
@MainThread
    public void showOn(Activity activity) {
        if (mIsShowing) {
            return;
        }
        mIsShowing = true;

        updateOverlayView(activity);
        activity.getWindow().addContentView(mOverlayView, mOverlayView.getLayoutParams());
        animateAndHideAfterDelay();
    }
/**
     * Adds the overlay as a content view to the {@code activity}, removing it when complete. While
     * it is shown, all touches will be intercepted to prevent accidental taps on obscured views.
     */
Adds the overlay as a content view to the  activity, removing it when complete. While
it is shown, all touches will be intercepted to prevent accidental taps on obscured views.
Adds the overlay as a content view to the activity removing it when complete . While it is shown all touches will be intercepted to prevent accidental taps on obscured views .
@MainThread
    public void showOn(Activity activity) {
        if (mIsShowing) {
            return;
        }
        mIsShowing = true;
        updateOverlayView(activity);
        activity.getWindow().addContentView(mOverlayView, mOverlayView.getLayoutParams());
        animateAndHideAfterDelay();
    }
@ MainThread public void showOn ( Activity activity ) { if ( mIsShowing ) { return ; } mIsShowing = true ; updateOverlayView ( activity ) ; activity . getWindow ( ) . addContentView ( mOverlayView , mOverlayView . getLayoutParams ( ) ) ; animateAndHideAfterDelay ( ) ; }
Adds the overlay as a content view to the {@code activity}, removing it when complete.
Adds the overlay as a content view to the { @code activity } removing it when complete .