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

Commit 409433e9 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Avoid NPE until we understand better." into jb-dev

parents 6a09c07b 3da415f1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1067,6 +1067,10 @@ public class DataUsageSummary extends Fragment {
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            final Context context = view.getContext();
            final AppItem app = (AppItem) parent.getItemAtPosition(position);

            // TODO: sigh, remove this hack once we understand 6450986
            if (mUidDetailProvider == null || app == null) return;

            final UidDetail detail = mUidDetailProvider.getUidDetail(app.appId, true);
            AppDetailsFragment.show(DataUsageSummary.this, app, detail.label);
        }