Remove loading spinner from Premium SMS access
The loading spinner in the page is displayed by default, regardless of whether or not how many apps are in the page. This change is trying to remove the loading spinner from the page since this page doesn't have many apps in it. Bug: 222441974 Test: visual verify Change-Id: I9b2b031122e6b6d521466ccf53e39185cfcab687
This commit is contained in:
@@ -43,8 +43,10 @@ public abstract class EmptyTextSettings extends SettingsPreferenceFragment {
|
||||
TypedValue value = new TypedValue();
|
||||
getContext().getTheme().resolveAttribute(android.R.attr.textAppearanceMedium, value, true);
|
||||
mEmpty.setTextAppearance(value.resourceId);
|
||||
final int layoutHeight = getContext().getResources()
|
||||
.getDimensionPixelSize(R.dimen.empty_text_layout_height);
|
||||
((ViewGroup) view.findViewById(android.R.id.list_container)).addView(mEmpty,
|
||||
new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
|
||||
new LayoutParams(LayoutParams.MATCH_PARENT, layoutHeight));
|
||||
setEmptyView(mEmpty);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user