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

Commit 2ade0a5e authored by Julia Reynolds's avatar Julia Reynolds Committed by Android Git Automerger
Browse files

am b7c6306b: am feeae4cd: Merge "Hide usage graph on app usage details pages." into mnc-dev

* commit 'b7c6306b':
  Hide usage graph on app usage details pages.
parents 831e3f66 b7c6306b
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -483,7 +483,7 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable
            // a header at the top.
            FrameLayout pinnedHeader = (FrameLayout) rootView.findViewById(R.id.pinned_header);
            AppHeader.createAppHeader(getActivity(), detail.icon, detail.label, null, pinnedHeader);
            AppDetailsFragment.show(DataUsageSummary.this, app, detail.label, false);
            AppDetailsFragment.show(DataUsageSummary.this, app, detail.label, true);
        } catch (NameNotFoundException e) {
            Log.w(TAG, "Could not find " + mShowAppImmediatePkg, e);
            Toast.makeText(getActivity(), getString(R.string.unknown_app), Toast.LENGTH_LONG)
@@ -934,9 +934,11 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable
        if (isAppDetailMode()) {
            mAppDetail.setVisibility(View.VISIBLE);
            mCycleAdapter.setChangeVisible(false);
            mChart.setVisibility(View.GONE);
        } else {
            mAppDetail.setVisibility(View.GONE);
            mCycleAdapter.setChangeVisible(true);
            mChart.setVisibility(View.VISIBLE);

            // hide detail stats when not in detail mode
            mChart.bindDetailNetworkStats(null);
@@ -1932,6 +1934,16 @@ public class DataUsageSummary extends HighlightingFragment implements Indexable
            target.mCurrentApp = null;
            target.updateBody();
        }

        @Override
        public boolean onOptionsItemSelected(MenuItem item) {
            switch (item.getItemId()) {
            case android.R.id.home:
                getFragmentManager().popBackStack();
                return true;
            }
            return super.onOptionsItemSelected(item);
        }
    }

    /**