use of com.android.launcher3.allapps.DiscoveryBounce.HOME_BOUNCE_SEEN in project Neo-Launcher by NeoApplications.
the class DiscoveryBounce method showForHomeIfNeeded.
private static void showForHomeIfNeeded(Launcher launcher, boolean withDelay) {
if (!launcher.isInState(NORMAL) || (launcher.getSharedPrefs().getBoolean(HOME_BOUNCE_SEEN, false) && !shouldShowForWorkProfile(launcher)) || AbstractFloatingView.getTopOpenView(launcher) != null || UserManagerCompat.getInstance(launcher).isDemoUser() || Utilities.IS_RUNNING_IN_TEST_HARNESS) {
return;
}
if (withDelay) {
new Handler().postDelayed(() -> showForHomeIfNeeded(launcher, false), DELAY_MS);
return;
}
incrementHomeBounceCount(launcher);
new DiscoveryBounce(launcher, 0).show(HOTSEAT);
}
Aggregations