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));
}
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));
}
Aggregations