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

Commit 649390b9 authored by Roman Birg's avatar Roman Birg Committed by Gerrit Code Review
Browse files

Settings: disable report button for system apps



This opens CMBugReport, and we don't want these reports. Disable the
button for better UX than the button doing nothing when clicking it.

Change-Id: I2563379e7ce49a246761c040edcb797cf112efce
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 355b8821
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -315,7 +315,9 @@ public class RunningServiceDetails extends Fragment
            // check if error reporting is enabled in secure settings
            int enabled = Settings.Global.getInt(getActivity().getContentResolver(),
                    Settings.Global.SEND_ACTION_APP_ERROR, 0);
            if (enabled != 0 && si != null) {
            boolean systemApp = (detail.mServiceItem.mServiceInfo.applicationInfo.flags
                    & ApplicationInfo.FLAG_SYSTEM) != 0;
            if (enabled != 0 && !systemApp && si != null) {
                detail.mInstaller = ApplicationErrorReport.getErrorReportReceiver(
                        getActivity(), si.mServiceInfo.packageName,
                        si.mServiceInfo.applicationInfo.flags);