Commits

Juha Kuitunen committed 530cda2

cleaning up IssuesActivity

Comments (0)

Files changed (1)

src/com/saibotd/bitbeaker/IssuesActivity.java

 import android.content.res.Resources;
 import android.os.Bundle;
 import android.text.TextUtils;
-import android.util.Log;
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.view.ViewGroup;
         slug = b.getString("slug");
         owner = b.getString("owner");
 
-        setContentView(R.layout.issues);
-        setTitle(slug + " issues");
+		setContentView(R.layout.issues);
+		setTitle(String.format("%1$s issues", slug));// this is not shown anywhere
 
 		int pos; // position in the action bar navigation
 		slug = getIntent().getStringExtra("slug");
 			filter = TextUtils.join("&status=", status);
 			pos = getPositionFromFilter(status);
 		}
-		setContentView(R.layout.issues);
-		setTitle(String.format("%1$s issues", slug));
 
 		String[] statusOptions = {
 			getResources().getString(R.string.issues_menu_filter_all), // "Show all issues"
         actionBar.setListNavigationCallbacks(mSpinnerAdapter, mNavigationCallback);
         actionBar.setSelectedNavigationItem(pos); 
         loadIssuesByFilter();
-    }
-    
+	}
+
 	/**
 	 * 
 	 * @param statusValues
 	@Override
 	protected void onActivityResult(int requestCode, int resultCode, Intent data) {
 		if (requestCode == NEW_ISSUE) {
-			Log.d("RESULT", "EWEQ");
 			loadIssuesByFilter();
 		}
 	}