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

Commit 7f5d4f5c authored by Arne Coucheron's avatar Arne Coucheron
Browse files

Revert "Settings: Fix Diagnostics setting crash issue."

This reverts commit 6bf70fdc.
parent ca454b07
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -298,15 +298,6 @@ public class PrivacySettings extends SettingsPreferenceFragment implements Index
    }

    private static boolean collectDiagnosticsEnabled(Context context) {
        if (!context.getResources().getBoolean(R.bool.config_collect_diagnostics_enabled)) {
            return false;
        }

        try {
            return context.getPackageManager().getPackageInfo(
                    "com.tmobile.pr.mytmobile", 0) != null;
        } catch(PackageManager.NameNotFoundException e) {
            return false;
        }
        return context.getResources().getBoolean(R.bool.config_collect_diagnostics_enabled);
    }
}