[Android] Actually show the toast so that it's visible

Edward Wang git at videolan.org
Mon Jun 11 22:46:48 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Jun 11 16:46:35 2012 -0400| [ba51642b36c328f45e3cb08856121e918490f5ca] | committer: Edward Wang

Actually show the toast so that it's visible

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

 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 0282ff1..83f5b4f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
@@ -137,7 +137,7 @@ public class PreferencesActivity extends PreferenceActivity {
 
                     public boolean onPreferenceClick(Preference preference) {
                         DatabaseManager.getInstance(getBaseContext()).emptyDatabase();
-                        Toast.makeText(getBaseContext(), "Media database cleared!", Toast.LENGTH_SHORT);
+                        Toast.makeText(getBaseContext(), "Media database cleared!", Toast.LENGTH_SHORT).show();
                         return true;
                     }
                 });



More information about the Android mailing list