ParanoidSystemUI: Fix background ripple on bluetooth device view

Based on 2d5107faa7

Change-Id: If915032d1a347fd41fff5ea87b4518b6827e7b71
This commit is contained in:
Adithya R 2024-02-20 13:26:15 +05:30 committed by fazilsheik96
parent 7143e4efcf
commit 3e9c32b2de
2 changed files with 2 additions and 6 deletions

View File

@ -142,7 +142,7 @@
<LinearLayout <LinearLayout
android:id="@+id/see_all_layout" android:id="@+id/see_all_layout"
style="@style/InternetDialog.Network" style="@style/InternetDialog.Network"
android:layout_height="56dp" android:layout_height="64dp"
android:paddingStart="20dp"> android:paddingStart="20dp">
<FrameLayout <FrameLayout
android:layout_width="24dp" android:layout_width="24dp"

View File

@ -147,11 +147,7 @@ public class BluetoothViewAdapter extends
mBluetoothSummaryText = view.requireViewById(R.id.bluetooth_summary); mBluetoothSummaryText = view.requireViewById(R.id.bluetooth_summary);
mBluetoothEndIcon = view.requireViewById(R.id.bluetooth_end_icon); mBluetoothEndIcon = view.requireViewById(R.id.bluetooth_end_icon);
mBackgroundOn = mContext.getDrawable(R.drawable.settingslib_switch_bar_bg_on); mBackgroundOn = mContext.getDrawable(R.drawable.settingslib_switch_bar_bg_on);
mBackgroundOff = mContext.getDrawable(R.drawable.internet_dialog_selected_effect);
try (final TypedArray typedArray = mContext.obtainStyledAttributes(
new int[]{android.R.attr.selectableItemBackground})) {
mBackgroundOff = typedArray.getDrawable(0 /* index */);
}
} }
void onBind(@NonNull CachedBluetoothDevice device, boolean isActive) { void onBind(@NonNull CachedBluetoothDevice device, boolean isActive) {