Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91487434 authored by Jason Monk's avatar Jason Monk
Browse files

Guard against no payment app

Bug: 25990521
Change-Id: I3307fb197d1a38ff759628bf72f6b7e4afcb8001
parent fb2ca7c2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -115,11 +115,13 @@ public class PaymentSettings extends SettingsPreferenceFragment {
                PaymentBackend paymentBackend = new PaymentBackend(mContext);
                paymentBackend.refresh();
                PaymentAppInfo app = paymentBackend.getDefaultApp();
                if (app != null) {
                    mSummaryLoader.setSummary(this, mContext.getString(R.string.payment_summary,
                            app.label));
                }
            }
        }
    }

    public static final SummaryLoader.SummaryProviderFactory SUMMARY_PROVIDER_FACTORY
            = new SummaryLoader.SummaryProviderFactory() {