Fix crash.
Bug: 25809075 Change-Id: I708a21d65943ba23aa40b4b0f3eb6cb3108e1cf4
This commit is contained in:
@@ -39,7 +39,7 @@ public abstract class EmptyTextSettings extends SettingsPreferenceFragment {
|
||||
TypedValue value = new TypedValue();
|
||||
getContext().getTheme().resolveAttribute(android.R.attr.textAppearanceMedium, value, true);
|
||||
mEmpty.setTextAppearance(value.resourceId);
|
||||
((ViewGroup) view.findViewById(R.id.list_container)).addView(mEmpty,
|
||||
((ViewGroup) view.findViewById(android.R.id.list_container)).addView(mEmpty,
|
||||
new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
|
||||
setEmptyView(mEmpty);
|
||||
}
|
||||
|
Reference in New Issue
Block a user