Search in sources :

Example 1 with WidgetsEduView

use of com.android.launcher3.views.WidgetsEduView in project android_packages_apps_Launcher3 by AOSPA.

the class WidgetsFullSheet method setUpEducationViewsIfNeeded.

private void setUpEducationViewsIfNeeded() {
    if (!hasSeenEducationDialog()) {
        postDelayed(() -> {
            WidgetsEduView eduDialog = showEducationDialog();
            eduDialog.addOnCloseListener(() -> {
                if (!hasSeenEducationTip()) {
                    addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
                    // Call #requestLayout() to trigger layout change listener in order to show
                    // arrow tip immediately if there is a widget to show it on.
                    requestLayout();
                }
            });
        }, EDUCATION_DIALOG_DELAY_MS);
    } else if (!hasSeenEducationTip()) {
        addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
    }
}
Also used : WidgetsEduView(com.android.launcher3.views.WidgetsEduView)

Example 2 with WidgetsEduView

use of com.android.launcher3.views.WidgetsEduView in project android_packages_apps_Launcher3 by ArrowOS.

the class WidgetsFullSheet method setUpEducationViewsIfNeeded.

private void setUpEducationViewsIfNeeded() {
    if (!hasSeenEducationDialog()) {
        postDelayed(() -> {
            WidgetsEduView eduDialog = showEducationDialog();
            eduDialog.addOnCloseListener(() -> {
                if (!hasSeenEducationTip()) {
                    addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
                    // Call #requestLayout() to trigger layout change listener in order to show
                    // arrow tip immediately if there is a widget to show it on.
                    requestLayout();
                }
            });
        }, EDUCATION_DIALOG_DELAY_MS);
    } else if (!hasSeenEducationTip()) {
        addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
    }
}
Also used : WidgetsEduView(com.android.launcher3.views.WidgetsEduView)

Example 3 with WidgetsEduView

use of com.android.launcher3.views.WidgetsEduView in project android_packages_apps_404Launcher by P-404.

the class WidgetsFullSheet method setUpEducationViewsIfNeeded.

private void setUpEducationViewsIfNeeded() {
    if (!hasSeenEducationDialog()) {
        postDelayed(() -> {
            WidgetsEduView eduDialog = showEducationDialog();
            eduDialog.addOnCloseListener(() -> {
                if (!hasSeenEducationTip()) {
                    addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
                    // Call #requestLayout() to trigger layout change listener in order to show
                    // arrow tip immediately if there is a widget to show it on.
                    requestLayout();
                }
            });
        }, EDUCATION_DIALOG_DELAY_MS);
    } else if (!hasSeenEducationTip()) {
        addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
    }
}
Also used : WidgetsEduView(com.android.launcher3.views.WidgetsEduView)

Example 4 with WidgetsEduView

use of com.android.launcher3.views.WidgetsEduView in project android_packages_apps_Launcher3 by crdroidandroid.

the class WidgetsFullSheet method setUpEducationViewsIfNeeded.

private void setUpEducationViewsIfNeeded() {
    if (!hasSeenEducationDialog()) {
        postDelayed(() -> {
            WidgetsEduView eduDialog = showEducationDialog();
            eduDialog.addOnCloseListener(() -> {
                if (!hasSeenEducationTip()) {
                    addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
                    // Call #requestLayout() to trigger layout change listener in order to show
                    // arrow tip immediately if there is a widget to show it on.
                    requestLayout();
                }
            });
        }, EDUCATION_DIALOG_DELAY_MS);
    } else if (!hasSeenEducationTip()) {
        addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
    }
}
Also used : WidgetsEduView(com.android.launcher3.views.WidgetsEduView)

Example 5 with WidgetsEduView

use of com.android.launcher3.views.WidgetsEduView in project android_packages_apps_Launcher3 by ProtonAOSP.

the class WidgetsFullSheet method setUpEducationViewsIfNeeded.

private void setUpEducationViewsIfNeeded() {
    if (!hasSeenEducationDialog()) {
        postDelayed(() -> {
            WidgetsEduView eduDialog = showEducationDialog();
            eduDialog.addOnCloseListener(() -> {
                if (!hasSeenEducationTip()) {
                    addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
                    // Call #requestLayout() to trigger layout change listener in order to show
                    // arrow tip immediately if there is a widget to show it on.
                    requestLayout();
                }
            });
        }, EDUCATION_DIALOG_DELAY_MS);
    } else if (!hasSeenEducationTip()) {
        addOnLayoutChangeListener(mLayoutChangeListenerToShowTips);
    }
}
Also used : WidgetsEduView(com.android.launcher3.views.WidgetsEduView)

Aggregations

WidgetsEduView (com.android.launcher3.views.WidgetsEduView)5