Commits

Tobias Duehr committed 6804dc5

May have fixed #54

  • Participants
  • Parent commits 83d4e96

Comments (0)

Files changed (2)

File src/com/saibotd/bitbeaker/SourceActivity.java

 		if (Helper.isImage(file)) {
 			ImageView imageView = (ImageView) findViewById(R.id.source_image);
 			imageView.setVisibility(View.VISIBLE);
-			loadImage(imageView, "https://bitbucket.org/" + owner + "/" + slug + "/raw/" + branch + Helper.encode(file));
+			loadImage(imageView, "https://bitbucket.org/" + owner + "/" + slug + "/raw/" + Helper.encode(branch) + Helper.encode(file));
+			setSupportProgressBarIndeterminateVisibility(false);
 		}
 		else {
-			executeAsyncLoader(API_BASE_URL + "/repositories/" + owner + "/" + slug + "/raw/" + branch + Helper.encode(file));
+			executeAsyncLoader(API_BASE_URL + "/repositories/" + owner + "/" + slug + "/raw/" + Helper.encode(branch) + Helper.encode(file));
 		}
 	}
 

File src/com/saibotd/bitbeaker/SourceBrowserActivity.java

 
 	private void getData() {
 		String error_msg = String.format(this.getString(R.string.file_not_found), subdir, branch);
-		executeAsyncLoader(API_BASE_URL + "/repositories/" + owner + "/" + slug + "/src/" + branch + Helper.encode(subdir),
+		executeAsyncLoader(API_BASE_URL + "/repositories/" + owner + "/" + slug + "/src/" + Helper.encode(branch) + Helper.encode(subdir),
 				null,
 				error_msg
 		);