Only display single line for title
When a malicious device admin app’s name includes a bunch of CRLF characters, it will cause incorrect shows and selection confusion in Settings Device admin apps listView. Test: Built the apk and saw single line title. Bug: 169936038 Change-Id: I98d9a93bfdc792017124dda52a59d25a6462079e
This commit is contained in:
@@ -207,6 +207,7 @@ public class DeviceAdminListPreferenceController extends BasePreferenceControlle
|
||||
return true;
|
||||
});
|
||||
pref.setOnPreferenceChangeListener((preference, newValue) -> false);
|
||||
pref.setSingleLineTitle(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user