[Android] MainActivity restarts itself

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


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

MainActivity restarts itself

(cherry picked from commit 2eb2ff86647d10c1e323c68fb6ce6069409d129b)

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

 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