Loading res/values/dimens.xml +1 −0 Original line number Diff line number Diff line Loading @@ -452,6 +452,7 @@ <!-- Text padding for EmptyTextSettings --> <dimen name="empty_text_padding">24dp</dimen> <dimen name="empty_text_layout_height">450dp</dimen> <!-- Choose SIM Activity dimens --> <dimen name="subtitle_bottom_padding">24dp</dimen> Loading src/com/android/settings/applications/specialaccess/premiumsms/PremiumSmsAccess.java +1 −3 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ public class PremiumSmsAccess extends EmptyTextSettings @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); setLoading(true, false); setEmptyText(R.string.premium_sms_none); } @Override Loading Loading @@ -138,8 +138,6 @@ public class PremiumSmsAccess extends EmptyTextSettings private void updatePrefs(ArrayList<AppEntry> apps) { if (apps == null) return; setEmptyText(R.string.premium_sms_none); setLoading(false, true); final PreferenceScreen screen = getPreferenceScreen(); screen.removeAll(); screen.setOrderingAsAdded(true); Loading src/com/android/settings/widget/EmptyTextSettings.java +3 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading
res/values/dimens.xml +1 −0 Original line number Diff line number Diff line Loading @@ -452,6 +452,7 @@ <!-- Text padding for EmptyTextSettings --> <dimen name="empty_text_padding">24dp</dimen> <dimen name="empty_text_layout_height">450dp</dimen> <!-- Choose SIM Activity dimens --> <dimen name="subtitle_bottom_padding">24dp</dimen> Loading
src/com/android/settings/applications/specialaccess/premiumsms/PremiumSmsAccess.java +1 −3 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ public class PremiumSmsAccess extends EmptyTextSettings @Override public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); setLoading(true, false); setEmptyText(R.string.premium_sms_none); } @Override Loading Loading @@ -138,8 +138,6 @@ public class PremiumSmsAccess extends EmptyTextSettings private void updatePrefs(ArrayList<AppEntry> apps) { if (apps == null) return; setEmptyText(R.string.premium_sms_none); setLoading(false, true); final PreferenceScreen screen = getPreferenceScreen(); screen.removeAll(); screen.setOrderingAsAdded(true); Loading
src/com/android/settings/widget/EmptyTextSettings.java +3 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading