Loading src/com/android/launcher3/Launcher.java +12 −4 Original line number Diff line number Diff line Loading @@ -153,7 +153,8 @@ import androidx.annotation.Nullable; * Default launcher application. */ public class Launcher extends BaseDraggingActivity implements LauncherExterns, LauncherModel.Callbacks, LauncherProviderChangeListener, UserEventDelegate{ LauncherModel.Callbacks, LauncherProviderChangeListener, UserEventDelegate, InvariantDeviceProfile.OnIDPChangeListener { public static final String TAG = "Launcher"; static final boolean LOGD = false; Loading Loading @@ -285,8 +286,9 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, LauncherAppState app = LauncherAppState.getInstance(this); mOldConfig = new Configuration(getResources().getConfiguration()); mModel = app.setLauncher(this); initDeviceProfile(app.getInvariantDeviceProfile()); InvariantDeviceProfile idp = app.getInvariantDeviceProfile(); initDeviceProfile(idp); idp.addOnChangeListener(this); mSharedPrefs = Utilities.getPrefs(this); mIconCache = app.getIconCache(); mAccessibilityDelegate = new LauncherAccessibilityDelegate(this); Loading Loading @@ -406,6 +408,12 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, } } @Override public void onIdpChanged(int changeFlags, InvariantDeviceProfile idp) { initDeviceProfile(idp); getRootView().dispatchInsets(); } private void initDeviceProfile(InvariantDeviceProfile idp) { // Load configuration-specific DeviceProfile mDeviceProfile = idp.getDeviceProfile(this); Loading Loading @@ -1322,7 +1330,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, TextKeyListener.getInstance().release(); clearPendingBinds(); LauncherAppState.getIDP(this).removeOnChangeListener(this); if (mLauncherCallbacks != null) { mLauncherCallbacks.onDestroy(); } Loading Loading
src/com/android/launcher3/Launcher.java +12 −4 Original line number Diff line number Diff line Loading @@ -153,7 +153,8 @@ import androidx.annotation.Nullable; * Default launcher application. */ public class Launcher extends BaseDraggingActivity implements LauncherExterns, LauncherModel.Callbacks, LauncherProviderChangeListener, UserEventDelegate{ LauncherModel.Callbacks, LauncherProviderChangeListener, UserEventDelegate, InvariantDeviceProfile.OnIDPChangeListener { public static final String TAG = "Launcher"; static final boolean LOGD = false; Loading Loading @@ -285,8 +286,9 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, LauncherAppState app = LauncherAppState.getInstance(this); mOldConfig = new Configuration(getResources().getConfiguration()); mModel = app.setLauncher(this); initDeviceProfile(app.getInvariantDeviceProfile()); InvariantDeviceProfile idp = app.getInvariantDeviceProfile(); initDeviceProfile(idp); idp.addOnChangeListener(this); mSharedPrefs = Utilities.getPrefs(this); mIconCache = app.getIconCache(); mAccessibilityDelegate = new LauncherAccessibilityDelegate(this); Loading Loading @@ -406,6 +408,12 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, } } @Override public void onIdpChanged(int changeFlags, InvariantDeviceProfile idp) { initDeviceProfile(idp); getRootView().dispatchInsets(); } private void initDeviceProfile(InvariantDeviceProfile idp) { // Load configuration-specific DeviceProfile mDeviceProfile = idp.getDeviceProfile(this); Loading Loading @@ -1322,7 +1330,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, TextKeyListener.getInstance().release(); clearPendingBinds(); LauncherAppState.getIDP(this).removeOnChangeListener(this); if (mLauncherCallbacks != null) { mLauncherCallbacks.onDestroy(); } Loading