mirror of
https://github.com/alesimula/Murine-launcher.git
synced 2026-10-28 18:02:18 +00:00
Base flags, changes and libraries for standalone build
This commit is contained in:
1 parent
8f68d8e232
commit
36c23553a5
10 files changed
+277
-37
No files matched your search
@@ -134,6 +134,9 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
|
||||
private final Rect mTempRect = new Rect();
|
||||
|
||||
public static final boolean PROP_CAN_RENDER_GESTURAL_NAV_BUTTONS =
|
||||
SystemProperties.getBoolean("persist.sys.ime.can_render_gestural_nav_buttons", true);
|
||||
|
||||
/** Whether the IME Switcher button is visible. */
|
||||
private static final int FLAG_IME_SWITCHER_BUTTON_VISIBLE = 1 << 0;
|
||||
/** Whether the IME is visible. */
|
||||
@@ -311,7 +314,7 @@ public class NavbarButtonsViewController implements TaskbarControllers.LoggableT
|
||||
mNavButtonsView.setLayoutParams(navButtonsViewLayoutParams);
|
||||
|
||||
mIsImeRenderingNavButtons =
|
||||
InputMethodService.canImeRenderGesturalNavButtons() && mContext.imeDrawsImeNavBar();
|
||||
PROP_CAN_RENDER_GESTURAL_NAV_BUTTONS && mContext.imeDrawsImeNavBar();
|
||||
if (!mIsImeRenderingNavButtons) {
|
||||
// IME switcher
|
||||
final int switcherResId = Flags.imeSwitcherRevamp()
|
||||
|
||||
@@ -56,9 +56,10 @@ class HomeVisibilityState {
|
||||
)
|
||||
}
|
||||
override fun onDisplayInsetsChanged(insetsState: InsetsState) {
|
||||
val bottomInset = insetsState.calculateInsets(insetsState.displayFrame,
|
||||
WindowInsets.Type.navigationBars(), false).bottom
|
||||
navbarInsetPosition = insetsState.displayFrame.bottom - bottomInset
|
||||
val displayFrame = insetsState.displayFrame
|
||||
val bottomInset = insetsState.calculateInsets(displayFrame, displayFrame,
|
||||
WindowInsets.Type.navigationBars(), false,).bottom
|
||||
navbarInsetPosition = displayFrame.bottom - bottomInset
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
@@ -68,6 +68,7 @@ import androidx.annotation.VisibleForTesting;
|
||||
import com.android.launcher3.dagger.ApplicationContext;
|
||||
import com.android.launcher3.dagger.LauncherAppComponent;
|
||||
import com.android.launcher3.dagger.LauncherAppSingleton;
|
||||
import com.android.launcher3.taskbar.NavbarButtonsViewController;
|
||||
import com.android.launcher3.util.DaggerSingletonObject;
|
||||
import com.android.launcher3.util.DaggerSingletonTracker;
|
||||
import com.android.launcher3.util.DisplayController;
|
||||
@@ -119,9 +120,6 @@ public class RecentsAnimationDeviceState implements DisplayInfoChangeListener, E
|
||||
private final RotationTouchHelper mRotationTouchHelper;
|
||||
private final TaskStackChangeListener mPipListener;
|
||||
// Cache for better performance since it doesn't change at runtime.
|
||||
private final boolean mCanImeRenderGesturalNavButtons =
|
||||
InputMethodService.canImeRenderGesturalNavButtons();
|
||||
|
||||
private @SystemUiStateFlags long mSystemUiStateFlags = QuickStepContract.SYSUI_STATE_AWAKE;
|
||||
private final Map<Integer, Long> mSysUIStateFlagsPerDisplay = new ConcurrentHashMap<>();
|
||||
private NavigationMode mMode = THREE_BUTTONS;
|
||||
@@ -626,7 +624,7 @@ public class RecentsAnimationDeviceState implements DisplayInfoChangeListener, E
|
||||
|
||||
/** Returns whether IME is rendering nav buttons, and IME is currently showing. */
|
||||
public boolean isImeRenderingNavButtons() {
|
||||
return mCanImeRenderGesturalNavButtons && mMode == NO_BUTTON
|
||||
return NavbarButtonsViewController.PROP_CAN_RENDER_GESTURAL_NAV_BUTTONS && mMode == NO_BUTTON
|
||||
&& ((getSysuiStateFlag() & SYSUI_STATE_IME_VISIBLE) != 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user