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

Commit f9e80b55 authored by Danesh's avatar Danesh
Browse files

Attempts to fix apps that reload when closed using long press back.

Eg, open gallery and try to force close using long press back.

Change-Id: I923fa8ca582ca554d7096c917fb6aeb12db3b899
parent 3f8122d8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -577,7 +577,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                            && appInfo.importance == RunningAppProcessInfo.IMPORTANCE_FOREGROUND) {
                        // Kill the entire pid
                        Toast.makeText(mContext, R.string.app_killed_message, Toast.LENGTH_SHORT).show();
                        if (appInfo.pkgList!=null && (apps.size() > 0)){
                                mgr.forceStopPackage(appInfo.pkgList[0]);
                        }else{
                                Process.killProcess(appInfo.pid);
                        }
                        break;
                    }
                }