Skip to content

Commit

Permalink
v1.0.1 - Fixed errors in v1.0.0.
Browse files Browse the repository at this point in the history
Switching screens while loading, network errors in Iterations or
Projects.
  • Loading branch information
PaitoAnderson committed Apr 21, 2014
1 parent 603fe83 commit d24683e
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Skrumaz/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.skrumaz.app"
android:versionCode="100"
android:versionName="1.0.0" >
android:versionCode="101"
android:versionName="1.0.1" >

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
54 changes: 39 additions & 15 deletions Skrumaz/src/main/java/com/skrumaz/app/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,16 +304,28 @@ public void run() {
switch (mFragmentAttached)
{
case TASKS:
Tasks tasksFragment = (Tasks) getFragmentManager().findFragmentById(R.id.content_frame);
tasksFragment.progressText.setText(processMsg);
try {
Tasks tasksFragment = (Tasks) getFragmentManager().findFragmentById(R.id.content_frame);
tasksFragment.progressText.setText(processMsg);
} catch (Exception ex) {
// Doesn't matter
}
break;
case ITERATIONS:
Iterations iterationsFragment = (Iterations) getFragmentManager().findFragmentById(R.id.content_frame);
iterationsFragment.progressText.setText(processMsg);
try {
Iterations iterationsFragment = (Iterations) getFragmentManager().findFragmentById(R.id.content_frame);
iterationsFragment.progressText.setText(processMsg);
} catch (Exception ex) {
// Doesn't matter
}
break;
case PROJECTS:
Projects projectsFragment = (Projects) getFragmentManager().findFragmentById(R.id.content_frame);
projectsFragment.progressText.setText(processMsg);
try {
Projects projectsFragment = (Projects) getFragmentManager().findFragmentById(R.id.content_frame);
projectsFragment.progressText.setText(processMsg);
} catch (Exception ex) {
// Doesn't matter
}
break;
}
}
Expand All @@ -323,19 +335,31 @@ public void run() {
public void SetError(final String errorMsg) {
switch (mFragmentAttached) {
case TASKS:
Tasks tasksFragment = (Tasks) getFragmentManager().findFragmentById(R.id.content_frame);
tasksFragment.continueRequests = false;
tasksFragment.breakingError = errorMsg;
try {
Tasks tasksFragment = (Tasks) getFragmentManager().findFragmentById(R.id.content_frame);
tasksFragment.continueRequests = false;
tasksFragment.breakingError = errorMsg;
} catch (Exception ex) {
// Doesn't matter
}
break;
case ITERATIONS:
Tasks iterationsFragment = (Tasks) getFragmentManager().findFragmentById(R.id.content_frame);
iterationsFragment.continueRequests = false;
iterationsFragment.breakingError = errorMsg;
try {
Iterations iterationsFragment = (Iterations) getFragmentManager().findFragmentById(R.id.content_frame);
iterationsFragment.continueRequests = false;
iterationsFragment.breakingError = errorMsg;
} catch (Exception ex) {
// Doesn't matter
}
break;
case PROJECTS:
Tasks projectsFragment = (Tasks) getFragmentManager().findFragmentById(R.id.content_frame);
projectsFragment.continueRequests = false;
projectsFragment.breakingError = errorMsg;
try {
Projects projectsFragment = (Projects) getFragmentManager().findFragmentById(R.id.content_frame);
projectsFragment.continueRequests = false;
projectsFragment.breakingError = errorMsg;
} catch (Exception ex) {
// Doesn't matter
}
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
public class ClientInfo {

private static String appVersionName = "1.0.0";
private static String appVersionName = "1.0.1";

public static HttpGet addHttpGetHeaders(HttpGet httpGet) {
httpGet.setHeader("X-RallyIntegrationName", "Skrumaz");
Expand Down

0 comments on commit d24683e

Please sign in to comment.