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

Commit 08641ecb authored by DvTonder's avatar DvTonder
Browse files

Framework: Bring Long press back kill app toast back

It is now supported thanks to pawitp commiting the context fix for
displaying framework toasts

Change-Id: I8ab1beb49fc3b61355de8bc207482e2f51ff3e2a
parent 311ed731
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -914,14 +914,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    }
                    if (targetKilled) {
                        performHapticFeedbackLw(null, HapticFeedbackConstants.LONG_PRESS, false);
                        /*
                        TODO: Displaying a Toast
                        The fix for bug 7048792: Use correct WindowManager for Toast - Using
                        the application Context instead of the activity Context to retrieve a
                        WindowManager with no parent window causes a NPE and reboot in 4.2 if we
                        try to display the Toast below. Disable until we can figure out a solution.
                        */
                        //Toast.makeText(mContext, R.string.app_killed_message, Toast.LENGTH_SHORT).show();
                        Toast.makeText(mContext, R.string.app_killed_message, Toast.LENGTH_SHORT).show();
                        break;
                    }
                }