Browse Source

some code cleaning

Alexander Brakowski 10 years ago
parent
commit
5c3bbd176d

+ 3 - 7
src/de/tudarmstadt/informatik/hostage/ui2/activity/MainActivity.java

@@ -1,7 +1,6 @@
 package de.tudarmstadt.informatik.hostage.ui2.activity;
 
 import java.util.ArrayList;
-import java.util.HashMap;
 import java.util.List;
 
 import android.app.ActionBar;
@@ -11,12 +10,10 @@ import android.app.AlertDialog;
 import android.app.Fragment;
 import android.app.FragmentManager;
 import android.app.FragmentTransaction;
-import android.content.BroadcastReceiver;
 import android.content.ComponentName;
 import android.content.Context;
 import android.content.DialogInterface;
 import android.content.Intent;
-import android.content.IntentFilter;
 import android.content.ServiceConnection;
 import android.content.SharedPreferences;
 import android.content.pm.ActivityInfo;
@@ -26,7 +23,6 @@ import android.net.Uri;
 import android.os.Bundle;
 import android.os.IBinder;
 import android.support.v4.app.ActionBarDrawerToggle;
-import android.support.v4.content.LocalBroadcastManager;
 import android.support.v4.widget.DrawerLayout;
 import android.text.Html;
 import android.util.Log;
@@ -153,7 +149,7 @@ public class MainActivity extends Activity {
 	/**
 	 * Holds the root fragment for our hierarchical fragment navigation
 	 */
-	private Fragment rootFragment;
+	private Fragment mRootFragment;
 
 	/**
 	 * Indicates if the warning, that the application will be closed, when pressing back again
@@ -496,8 +492,8 @@ public class MainActivity extends Activity {
 		}
 
 		if (fragment != null) {
-			if(position == 0 && rootFragment == null){
-				rootFragment = fragment;
+			if(position == 0 && mRootFragment == null){
+				mRootFragment = fragment;
 			}
 
 			injectFragment(fragment);