Fix truncated in USB preference

Make preference could be shown two line title.

Screenshot:
https://screenshot.googleplex.com/Akod4qejhzmDH8z.png

Bug: 189189209
Test: manually test
Change-Id: Id2c69ba07d81234dce0b31ffd2cc80fb0d1e6f7f
This commit is contained in:
Hugh Chen
2021-05-27 10:15:10 +08:00
parent 3a55bed8a1
commit aedba90a9e

View File

@@ -87,6 +87,7 @@ public class UsbDetailsFunctionsController extends UsbDetailsController
pref = new RadioButtonPreference(mProfilesContainer.getContext());
pref.setKey(key);
pref.setTitle(titleId);
pref.setSingleLineTitle(false);
pref.setOnClickListener(this);
mProfilesContainer.addPreference(pref);
}