Skip to content

Commit

Permalink
Fixes #276
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Rust committed Jan 18, 2014
1 parent b0fc7a8 commit 25316e4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/android/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="st.alr.mqttitude"
android:versionCode="0408"
android:versionName="0.4.08 " >
android:versionCode="0409"
android:versionName="0.4.09 " >

<uses-feature
android:glEsVersion="0x00020000"
Expand Down
Binary file modified apps/android/apk/mqttitude.apk
Binary file not shown.
4 changes: 3 additions & 1 deletion apps/android/src/st/alr/mqttitude/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public Fragment showFragment(int id, Bundle extras) {

// Shows the previous fragment
public Fragment back() {

HeadlessFragment.getInstance().popBackStack();


Expand All @@ -170,7 +171,7 @@ public Fragment forward(Integer id, Bundle extras) {
}

public boolean atRoot() {
return HeadlessFragment.getInstance().getBackStackSize() == 1;
return HeadlessFragment.getInstance().getBackStackSize() <= 1;
}

private Bundle handleFragmentArguments(int id, Bundle extras) {
Expand Down Expand Up @@ -1039,6 +1040,7 @@ public Integer getBackStackHead(Integer rootId) {
}

public Integer popBackStack() {

return backStack.removeLast();
}

Expand Down

0 comments on commit 25316e4

Please sign in to comment.