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: I0c9d80273ed752c5a83afcad18d67400bcfc1618
This commit is contained in:
@@ -51,6 +51,7 @@ public class AppSwitchPreference extends SwitchPreference {
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(PreferenceViewHolder holder) {
|
||||
setSingleLineTitle(true);
|
||||
super.onBindViewHolder(holder);
|
||||
final View switchView = holder.findViewById(android.R.id.switch_widget);
|
||||
if (switchView != null) {
|
||||
|
||||
Reference in New Issue
Block a user