[Settings] Limit height of TextView when text too long
Adjust the layout through having ConstraintLayout for limiting the height of TextView. Bug: 205460459 Test: local Change-Id: Ic15af4c9be393a6855d78a5d9af086b099c9b689
This commit is contained in:
@@ -29,6 +29,7 @@ import com.android.internal.net.LegacyVpnInfo;
|
||||
import com.android.internal.net.VpnConfig;
|
||||
import com.android.settingslib.RestrictedLockUtils;
|
||||
import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
|
||||
import com.android.settings.R;
|
||||
|
||||
/**
|
||||
* {@link androidx.preference.Preference} containing information about a VPN
|
||||
@@ -42,7 +43,7 @@ public class AppPreference extends ManageablePreference {
|
||||
private final String mName;
|
||||
|
||||
public AppPreference(Context context, int userId, String packageName) {
|
||||
super(context, null /* attrs */);
|
||||
super(context, null /* attrs */, R.style.VpnAppManagementPreferenceStyle, 0);
|
||||
super.setUserId(userId);
|
||||
|
||||
mPackageName = packageName;
|
||||
|
||||
Reference in New Issue
Block a user