Checkstyle
authorDa Risk <da_risk@beem-project.com>
Tue, 24 Jul 2012 18:30:07 +0200
changeset 983 e818646525da
parent 982 7067aa267917
child 984 46b16746d8a2
Checkstyle
src/com/beem/project/beem/ui/ContactList.java
--- a/src/com/beem/project/beem/ui/ContactList.java	Tue Jul 24 18:22:08 2012 +0200
+++ b/src/com/beem/project/beem/ui/ContactList.java	Tue Jul 24 18:30:07 2012 +0200
@@ -49,8 +49,6 @@
 import java.util.ListIterator;
 import java.util.Map;
 
-import org.jivesoftware.smack.util.StringUtils;
-
 import android.app.Dialog;
 import android.content.ComponentName;
 import android.content.Intent;
@@ -87,6 +85,8 @@
 import com.beem.project.beem.ui.dialogs.builders.ResendSubscription;
 import com.beem.project.beem.utils.BeemBroadcastReceiver;
 
+import org.jivesoftware.smack.util.StringUtils;
+
 /**
  * The contact list activity displays the roster of the user.
  */
@@ -98,6 +98,7 @@
     }
 
     private static final String TAG = "ContactList";
+    private static final float PAGER_TAB_SECONDARY_ALPHA = 0.5f;
     private final List<String> mListGroup = new ArrayList<String>();
 
     /** Map containing a list of the different contacts of a given group.
@@ -116,7 +117,7 @@
     private boolean mBinded;
     private ViewPager viewPager;
     private ListPagerAdapter groupsPagesAdapter;
-    private PagerTabStrip pagerTabs; 
+    private PagerTabStrip pagerTabs;
 
     /**
      * Constructor.
@@ -182,8 +183,8 @@
 	groupsPagesAdapter = new ListPagerAdapter(getSupportFragmentManager(), viewPager);
 	pagerTabs = (PagerTabStrip) findViewById(R.id.tabstrip);
 	pagerTabs.setTabIndicatorColorResource(R.color.vert_manu);
-	pagerTabs.setNonPrimaryAlpha(0.50f);
-	
+	pagerTabs.setNonPrimaryAlpha(PAGER_TAB_SECONDARY_ALPHA);
+
 	mListGroup.add(getString(R.string.contact_list_all_contact));
 	mListGroup.add(getString(R.string.contact_list_no_group));
 	groupsPagesAdapter.notifyDataSetChanged();
@@ -310,7 +311,7 @@
      * Hide the groups view.
      */
     private void hideGroups() {
-    pagerTabs.setVisibility(View.GONE);
+	pagerTabs.setVisibility(View.GONE);
     }
 
     /**
@@ -567,10 +568,10 @@
 	public int getCount() {
 	    return mListGroup.size();
 	}
-	
+
 	@Override
 	public String getPageTitle(int position) {
-		return mListGroup.get(position);
+	    return mListGroup.get(position);
 	}
 
     }