Merge "Fix the unclickable learn more link." into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
6c0260c0ec
@@ -18,6 +18,7 @@ package com.android.settings.fuelgauge;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
import android.text.method.LinkMovementMethod;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.TextView;
|
||||
|
||||
@@ -44,6 +45,7 @@ public class BatteryHeaderTextPreference extends Preference implements GroupSect
|
||||
public void onBindViewHolder(PreferenceViewHolder view) {
|
||||
final TextView textView = (TextView) view.findViewById(R.id.text);
|
||||
textView.setText(mText);
|
||||
textView.setMovementMethod(LinkMovementMethod.getInstance());
|
||||
if (!TextUtils.isEmpty(mContentDescription)) {
|
||||
textView.setContentDescription(mContentDescription);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user