Skip to content

Commit 022d42a

Browse files
committed
ANDROID: fix back button regression
1 parent bb274b4 commit 022d42a

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dnl This program is distributed under the terms of the GPL v2.0
77
dnl Download the GNU Public License (GPL) from www.gnu.org
88
dnl
99

10-
AC_INIT([smallbasic], [0.12.3])
10+
AC_INIT([smallbasic], [0.12.4])
1111
AC_CONFIG_SRCDIR([configure.ac])
1212

1313
AC_CANONICAL_TARGET

ide/android/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="net.sourceforge.smallbasic"
44
android:installLocation="preferExternal"
5-
android:versionCode="17"
6-
android:versionName="0.12.3">
5+
android:versionCode="18"
6+
android:versionName="0.12.4">
77
<!-- This is the platform API where NativeActivity was introduced. -->
88
<uses-sdk android:minSdkVersion="9"/>
99

ide/android/assets/main.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ sub do_about()
5555
print "(_ ._ _ _.|||_) /\ (_ |/ "
5656
print "__)| | |(_||||_)/--\__)|\_"
5757
print
58-
print "Version 0.12.3"
58+
print "Version 0.12.4"
5959
print
6060
print "Copyright (c) 2002-2015 Chris Warren-Smith"
6161
print "Copyright (c) 1999-2006 Nic Christopoulos" + chr(10)

src/ui/system.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -631,22 +631,22 @@ void System::saveFile(TextEditInput *edit, strlib::String &path) {
631631

632632
void System::setBack() {
633633
if (_userScreenId != -1) {
634-
// restore user screen
634+
// return (back) from user screen, (view source)
635635
_output->selectBackScreen(_userScreenId);
636636
_output->selectFrontScreen(_userScreenId);
637637
_userScreenId = -1;
638-
}
639-
640-
// quit app when shell is active
641-
setExit(_mainBas);
642-
643-
// follow history when available and not exiting
644-
if (!_mainBas) {
645-
// remove the current item
646-
_history.pop();
647-
if (_history.peek() != NULL) {
648-
_loadPath.empty();
649-
_loadPath.append(_history.peek());
638+
} else {
639+
// quit app when shell is active
640+
setExit(_mainBas);
641+
642+
// follow history when available and not exiting
643+
if (!_mainBas) {
644+
// remove the current item
645+
_history.pop();
646+
if (_history.peek() != NULL) {
647+
_loadPath.empty();
648+
_loadPath.append(_history.peek());
649+
}
650650
}
651651
}
652652
}

0 commit comments

Comments
 (0)