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

Commit fa14e61a authored by Mohit Mali's avatar Mohit Mali
Browse files

Remove commented code and unused code

parent 0181f5e0
Loading
Loading
Loading
Loading
+0 −30
Original line number Diff line number Diff line
@@ -394,13 +394,6 @@ public class AppInfoDashboardFragment extends DashboardFragment
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode == REQUEST_UNINSTALL) {
            // Refresh option menu
//                if (mAppEntry.info.packageName.equals("com.google.android.gms")){
//                    Intent broadcastIntent = new Intent();
//                    broadcastIntent.setAction("foundation.e.apps.debugg");
//                    broadcastIntent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
//                    sendImplicitBroadcast(getActivity(),broadcastIntent,"foundation.e.apps.debugg");
//                }

            if (mAppEntry.info.packageName.equals("com.google.android.gms")){
                if (retrieveStatus(getActivity())!=null){
                    ContentValues values = new ContentValues();
@@ -429,29 +422,6 @@ public class AppInfoDashboardFragment extends DashboardFragment
        return status;
    }


    private void sendImplicitBroadcast(Context ctxt, Intent intent,String application) {
        try {
            PackageManager pm = ctxt.getPackageManager();
            List<ResolveInfo> matches = pm.queryBroadcastReceivers(intent, 0);

            for (ResolveInfo resolveInfo : matches) {
                Intent explicit = new Intent(intent);
                if (resolveInfo.activityInfo.packageName.equals(application)) {
                    ComponentName cn = new ComponentName(resolveInfo.activityInfo.applicationInfo.packageName,
                            resolveInfo.activityInfo.name);
                    explicit.setComponent(cn);
                    ctxt.sendBroadcast(explicit);
                    break;
                }


            }
        }catch (ActivityNotFoundException e){
            e.printStackTrace();
        }
    }

    @Override
    public void handleDialogClick(int id) {
        if (mAppButtonsPreferenceController != null) {