diff --git a/quickstep/res/layout/taskbar_divider_popup_menu.xml b/quickstep/res/layout/taskbar_divider_popup_menu.xml index 195443ead9..00e47c9bed 100644 --- a/quickstep/res/layout/taskbar_divider_popup_menu.xml +++ b/quickstep/res/layout/taskbar_divider_popup_menu.xml @@ -32,7 +32,7 @@ android:clickable="true" android:gravity="center_vertical" android:orientation="horizontal" - android:background="@drawable/top_rounded_popup_ripple" + android:background="@drawable/rounded_popup_ripple" android:paddingEnd="10dp" android:paddingStart="10dp" android:theme="@style/PopupItem"> @@ -59,40 +59,4 @@ android:text="@string/always_show_taskbar" /> - - - - - - - - \ No newline at end of file diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarDividerPopupView.kt b/quickstep/src/com/android/launcher3/taskbar/TaskbarDividerPopupView.kt index a347908473..b0d2c3cdad 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarDividerPopupView.kt +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarDividerPopupView.kt @@ -17,7 +17,6 @@ package com.android.launcher3.taskbar import android.annotation.SuppressLint import android.content.Context -import android.content.Intent import android.graphics.Rect import android.graphics.drawable.GradientDrawable import android.util.AttributeSet @@ -44,9 +43,6 @@ constructor( companion object { private const val TAG = "TaskbarDividerPopupView" private const val DIVIDER_POPUP_CLOSING_DELAY = 500L - private const val SETTINGS_PACKAGE_NAME = "com.android.settings" - private const val CHANGE_NAVIGATION_MODE_ACTION = - "com.android.settings.NAVIGATION_MODE_SETTINGS" @JvmStatic fun createAndPopulate( @@ -103,21 +99,12 @@ constructor( super.onFinishInflate() val taskbarSwitchOption = findViewById(R.id.taskbar_switch_option) val alwaysShowTaskbarSwitch = findViewById(R.id.taskbar_pinning_switch) - val navigationModeChangeOption = - findViewById(R.id.navigation_mode_switch_option) alwaysShowTaskbarSwitch.isChecked = alwaysShowTaskbarOn taskbarSwitchOption.setOnClickListener { alwaysShowTaskbarSwitch.isClickable = true alwaysShowTaskbarSwitch.isChecked = !alwaysShowTaskbarOn onClickAlwaysShowTaskbarSwitchOption() } - navigationModeChangeOption.setOnClickListener { - context.startActivity( - Intent(CHANGE_NAVIGATION_MODE_ACTION) - .setPackage(SETTINGS_PACKAGE_NAME) - .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) - ) - } } /** Orient object as usual and then center object horizontally. */ diff --git a/res/drawable/bottom_rounded_popup_ripple.xml b/res/drawable/rounded_popup_ripple.xml similarity index 80% rename from res/drawable/bottom_rounded_popup_ripple.xml rename to res/drawable/rounded_popup_ripple.xml index 739833a47c..b0dcc80ba2 100644 --- a/res/drawable/bottom_rounded_popup_ripple.xml +++ b/res/drawable/rounded_popup_ripple.xml @@ -18,10 +18,7 @@ - + \ No newline at end of file diff --git a/res/drawable/top_rounded_popup_ripple.xml b/res/drawable/top_rounded_popup_ripple.xml deleted file mode 100644 index 7468480192..0000000000 --- a/res/drawable/top_rounded_popup_ripple.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - \ No newline at end of file