[Android] MainActivity restarts itself

Geoffrey Métais git at videolan.org
Wed Jul 6 11:56:32 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul  6 11:56:11 2016 +0200| [2eb2ff86647d10c1e323c68fb6ce6069409d129b] | committer: Geoffrey Métais

MainActivity restarts itself

> https://code.videolan.org/videolan/vlc-android/commit/2eb2ff86647d10c1e323c68fb6ce6069409d129b
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 5653216..31558bb 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -697,7 +697,7 @@ public class MainActivity extends AudioPlayerContainerActivity implements Filter
                         ((MediaBrowserFragment) fragment).clear();
                 mMediaLibrary.scanMediaItems(true);
             } else if (resultCode == PreferencesActivity.RESULT_RESTART) {
-                Intent intent = new Intent(MainActivity.this, StartActivity.class);
+                Intent intent = new Intent(MainActivity.this, MainActivity.class);
                 finish();
                 startActivity(intent);
             }



More information about the Android mailing list