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

Commit 29446c8e authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

Merge "Attempts to fix apps that reload when closed using long press back." into gingerbread

parents cf84cec7 f9e80b55
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;
                    }
                }