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. Change-Id: Ifc3cc689a221830c6687b7d69cf86f1ed7f2d698 Test: Built the apk and saw single line title. Bug: 169936038 Merged-In: I0c9d80273ed752c5a83afcad18d67400bcfc1618
This commit is contained in:
@@ -47,6 +47,7 @@ public class FilterTouchesSwitchPreference 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