Use MainSwitchPreference to replace the button style switches.
Fix: 177967926 Fix: 177968295 Fix: 177967925 Fix: 177968078 Test: Run robotest and apply the widget in Settings and see the ui Change-Id: Ie854de96e5495fa564fb8a097ed4547bbd2b10c5
This commit is contained in:
@@ -72,16 +72,16 @@ public class BlockPreferenceController extends NotificationPreferenceController
|
||||
bar.setDisabledByAdmin(mAdmin);
|
||||
|
||||
if (mChannel != null && !isChannelBlockable()) {
|
||||
bar.setEnabled(false);
|
||||
bar.setSwitchBarEnabled(false);
|
||||
}
|
||||
|
||||
if (mChannelGroup != null && !isChannelGroupBlockable()) {
|
||||
bar.setEnabled(false);
|
||||
bar.setSwitchBarEnabled(false);
|
||||
}
|
||||
|
||||
if (mChannel == null && mAppRow.systemApp
|
||||
&& (!mAppRow.banned || mAppRow.lockedImportance)) {
|
||||
bar.setEnabled(false);
|
||||
bar.setSwitchBarEnabled(false);
|
||||
}
|
||||
|
||||
if (mChannel != null) {
|
||||
|
Reference in New Issue
Block a user