Remove dividers of ActionButtonsPreference

Fixes: 189388105
Test: manual
Change-Id: Id772328cd7d4df79b985de94f320b044ebda7c6c
This commit is contained in:
Edgar Wang
2021-05-28 13:30:32 +08:00
parent a0ecdaafd5
commit 36c28aaba2

View File

@@ -93,10 +93,10 @@ public class ActionButtonsPreference extends Preference {
@Override
public void onBindViewHolder(PreferenceViewHolder holder) {
super.onBindViewHolder(holder);
if (!BuildCompat.isAtLeastS()) {
holder.setDividerAllowedAbove(true);
holder.setDividerAllowedBelow(true);
}
final boolean allowedDivider = !BuildCompat.isAtLeastS();
holder.setDividerAllowedAbove(allowedDivider);
holder.setDividerAllowedBelow(allowedDivider);
mButton1Info.mButton = (Button) holder.findViewById(R.id.button1);
mButton2Info.mButton = (Button) holder.findViewById(R.id.button2);