diff --git a/AndroidManifest.xml b/AndroidManifest.xml index b71e964d71c..774cb45de20 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -382,16 +382,6 @@ android:value="true" /> - - - - - - - - - - - - - - - - - - appInfos = mPaymentBackend.getPaymentAppInfos(); + List appInfos = mPaymentBackend.getPaymentAppInfos(); if (appInfos != null && appInfos.size() > 0) { NfcPaymentPreference preference = new NfcPaymentPreference(getPrefContext(), mPaymentBackend); @@ -75,6 +63,16 @@ public class PaymentSettings extends SettingsPreferenceFragment { setPreferenceScreen(screen); } + @Override + public void onViewCreated(View view, Bundle savedInstanceState) { + super.onViewCreated(view, savedInstanceState); + ViewGroup contentRoot = (ViewGroup) getListView().getParent(); + View emptyView = getActivity().getLayoutInflater().inflate( + R.layout.nfc_payment_empty, contentRoot, false); + contentRoot.addView(emptyView); + setEmptyView(emptyView); + } + @Override public void onResume() { super.onResume();