Stop controller from steal preference clicks

Test: atest
Fixes: 150175360
Change-Id: Ia22058df0ddbd1a274a508e2600d12aa1b67a343
This commit is contained in:
Julia Reynolds
2020-02-25 10:41:08 -05:00
parent 490eba353b
commit bc0c7a626d
2 changed files with 19 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ public class ConversationPromotePreferenceController extends NotificationPrefere
@Override
public boolean handlePreferenceTreeClick(Preference preference) {
if (mChannel == null) {
if (mChannel == null || !KEY.equals(preference.getKey())) {
return false;
}
mChannel.setDemoted(false);