Loading quickstep/src/com/android/quickstep/SystemUiProxy.java +11 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,17 @@ public class SystemUiProxy implements ISystemUiProxy, } } @Override public void setHomeRotationEnabled(boolean enabled) { if (mSystemUiProxy != null) { try { mSystemUiProxy.setHomeRotationEnabled(enabled); } catch (RemoteException e) { Log.w(TAG, "Failed call onBackPressed", e); } } } @Override public IBinder asBinder() { // Do nothing Loading quickstep/src/com/android/quickstep/util/RecentsOrientedState.java +4 −2 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ import com.android.launcher3.util.DisplayController; import com.android.launcher3.util.SettingsCache; import com.android.launcher3.util.WindowBounds; import com.android.quickstep.BaseActivityInterface; import com.android.quickstep.SystemUiProxy; import com.android.quickstep.views.TaskView; import java.lang.annotation.Retention; Loading Loading @@ -287,8 +288,9 @@ public final class RecentsOrientedState implements } private void updateHomeRotationSetting() { setFlag(FLAG_HOME_ROTATION_ALLOWED_IN_PREFS, mSharedPrefs.getBoolean(ALLOW_ROTATION_PREFERENCE_KEY, false)); boolean homeRotationEnabled = mSharedPrefs.getBoolean(ALLOW_ROTATION_PREFERENCE_KEY, false); setFlag(FLAG_HOME_ROTATION_ALLOWED_IN_PREFS, homeRotationEnabled); SystemUiProxy.INSTANCE.get(mContext).setHomeRotationEnabled(homeRotationEnabled); } private void initFlags() { Loading Loading
quickstep/src/com/android/quickstep/SystemUiProxy.java +11 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,17 @@ public class SystemUiProxy implements ISystemUiProxy, } } @Override public void setHomeRotationEnabled(boolean enabled) { if (mSystemUiProxy != null) { try { mSystemUiProxy.setHomeRotationEnabled(enabled); } catch (RemoteException e) { Log.w(TAG, "Failed call onBackPressed", e); } } } @Override public IBinder asBinder() { // Do nothing Loading
quickstep/src/com/android/quickstep/util/RecentsOrientedState.java +4 −2 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ import com.android.launcher3.util.DisplayController; import com.android.launcher3.util.SettingsCache; import com.android.launcher3.util.WindowBounds; import com.android.quickstep.BaseActivityInterface; import com.android.quickstep.SystemUiProxy; import com.android.quickstep.views.TaskView; import java.lang.annotation.Retention; Loading Loading @@ -287,8 +288,9 @@ public final class RecentsOrientedState implements } private void updateHomeRotationSetting() { setFlag(FLAG_HOME_ROTATION_ALLOWED_IN_PREFS, mSharedPrefs.getBoolean(ALLOW_ROTATION_PREFERENCE_KEY, false)); boolean homeRotationEnabled = mSharedPrefs.getBoolean(ALLOW_ROTATION_PREFERENCE_KEY, false); setFlag(FLAG_HOME_ROTATION_ALLOWED_IN_PREFS, homeRotationEnabled); SystemUiProxy.INSTANCE.get(mContext).setHomeRotationEnabled(homeRotationEnabled); } private void initFlags() { Loading