[Android] Make Quit Application actually quit the application

Edward Wang git at videolan.org
Sat Jun 23 14:53:33 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sat Jun 23 08:53:21 2012 -0400| [902ca9f1718314ff9373146b9474641f0fb9a840] | committer: Edward Wang

Make Quit Application actually quit the application

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=902ca9f1718314ff9373146b9474641f0fb9a840
---

 vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
index 7ffebaf..9e22d82 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
@@ -155,7 +155,7 @@ public class PreferencesActivity extends PreferenceActivity {
 
                     @Override
                     public boolean onPreferenceClick(Preference preference) {
-                    	System.exit(0);
+                        android.os.Process.killProcess(android.os.Process.myPid());
                         return true;
                     }
                 });



More information about the Android mailing list