[Android] Main activity: remove an unused function
Adrien Maglo
git at videolan.org
Tue Jan 28 16:54:12 CET 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Tue Jan 28 16:47:50 2014 +0100| [e6e22e709727e1e98d3d368b824b8236f03a3485] | committer: Adrien Maglo
Main activity: remove an unused function
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=e6e22e709727e1e98d3d368b824b8236f03a3485
---
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index f5d08e7..f9d5b9f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -438,22 +438,6 @@ public class MainActivity extends SherlockFragmentActivity {
return mSidebarAdapter.fetchFragment(id);
}
- private void ShowFragment(String tag, Class<? extends Fragment> fragmentClass) {
- Fragment fragment = null;
- try {
- fragment = fragmentClass.newInstance();
- } catch (InstantiationException e) {
- Log.e(TAG, "Failed to instantiate "+fragmentClass.getName()+", ShowFragment("+tag+") aborted.");
- } catch (IllegalAccessException e) {
- Log.e(TAG, "Failed to instantiate "+fragmentClass.getName()+", ShowFragment("+tag+") aborted.");
- }
-
- // Slide down the mini player if needed.
- slideDownMiniPlayer();
-
- ShowFragment(this, tag, fragment);
- }
-
public static void ShowFragment(FragmentActivity activity, String tag, Fragment fragment) {
if (fragment == null) {
Log.e(TAG, "Cannot show a null fragment, ShowFragment("+tag+") aborted.");
More information about the Android
mailing list