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

Commit 12587f03 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Tron metric for force stop app"

parents e3ca36a0 91bae6ca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -743,6 +743,8 @@ public class InstalledAppDetails extends AppInfoBase
    }

    private void forceStopPackage(String pkgName) {
        FeatureFactory.getFactory(getContext()).getMetricsFeatureProvider().action(getContext(),
                MetricsEvent.ACTION_APP_FORCE_STOP, pkgName);
        ActivityManager am = (ActivityManager) getActivity().getSystemService(
                Context.ACTIVITY_SERVICE);
        am.forceStopPackage(pkgName);