Search in sources :

Example 6 with LocusId

use of android.content.LocusId in project android_packages_apps_Launcher3 by ProtonAOSP.

the class RecentsView method updateLocusId.

/**
 * Update the current activity locus id to show the enabled state of Overview
 */
public void updateLocusId() {
    String locusId = "Overview";
    if (mOverviewStateEnabled && mActivity.isStarted()) {
        locusId += "|ENABLED";
    } else {
        locusId += "|DISABLED";
    }
    final LocusId id = new LocusId(locusId);
    // Set locus context is a binder call, don't want it to happen during a transition
    UI_HELPER_EXECUTOR.post(() -> mActivity.setLocusContext(id, Bundle.EMPTY));
}
Also used : LocusId(android.content.LocusId)

Example 7 with LocusId

use of android.content.LocusId in project android_packages_apps_Launcher3 by AOSPA.

the class RecentsView method updateLocusId.

/**
 * Update the current activity locus id to show the enabled state of Overview
 */
public void updateLocusId() {
    String locusId = "Overview";
    if (mOverviewStateEnabled && mActivity.isStarted()) {
        locusId += "|ENABLED";
    } else {
        locusId += "|DISABLED";
    }
    final LocusId id = new LocusId(locusId);
    // Set locus context is a binder call, don't want it to happen during a transition
    UI_HELPER_EXECUTOR.post(() -> mActivity.setLocusContext(id, Bundle.EMPTY));
}
Also used : LocusId(android.content.LocusId)

Aggregations

LocusId (android.content.LocusId)7 ContentCaptureCondition (android.view.contentcapture.ContentCaptureCondition)1 HashSet (java.util.HashSet)1 Test (org.junit.Test)1