Search in sources :

Example 1 with ConfigMonitor

use of com.android.launcher3.util.ConfigMonitor in project Neo-Launcher by NeoApplications.

the class InvariantDeviceProfile method apply.

private void apply(Context context, int changeFlags) {
    // Create a new config monitor
    mConfigMonitor.unregister();
    mConfigMonitor = new ConfigMonitor(context, this::onConfigChanged);
    for (OnIDPChangeListener listener : mChangeListeners) {
        listener.onIdpChanged(changeFlags, this);
    }
}
Also used : ConfigMonitor(com.android.launcher3.util.ConfigMonitor)

Example 2 with ConfigMonitor

use of com.android.launcher3.util.ConfigMonitor in project android_packages_apps_Trebuchet by LineageOS.

the class InvariantDeviceProfile method apply.

private void apply(Context context, int changeFlags) {
    // Create a new config monitor
    mConfigMonitor.unregister();
    mConfigMonitor = new ConfigMonitor(context, this::onConfigChanged);
    for (OnIDPChangeListener listener : mChangeListeners) {
        listener.onIdpChanged(changeFlags, this);
    }
}
Also used : ConfigMonitor(com.android.launcher3.util.ConfigMonitor)

Aggregations

ConfigMonitor (com.android.launcher3.util.ConfigMonitor)2