Skip to content

Commit 4c66fb3

Browse files
committed
ANDROID: bump version
1 parent 9cf555b commit 4c66fb3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/platform/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
applicationId 'net.sourceforge.smallbasic'
1010
minSdkVersion 16
1111
targetSdkVersion 27
12-
versionCode 35
12+
versionCode 36
1313
versionName "0.12.15.3"
1414
resConfigs "en"
1515
}

src/platform/android/jni/runtime.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,6 @@ void System::editSource(strlib::String loadPath, bool restoreOnExit) {
952952
cleanFile.append(" - ");
953953
cleanFile.append(fileName);
954954

955-
bool showStatus = true;
956955
int w = _output->getWidth();
957956
int h = _output->getHeight();
958957
int charWidth = _output->getCharWidth();
@@ -987,8 +986,9 @@ void System::editSource(strlib::String loadPath, bool restoreOnExit) {
987986
runtime->alert(gsb_last_errmsg);
988987
}
989988

989+
bool showStatus = !editWidget->getScroll();
990990
_srcRendered = false;
991-
_output->setStatus(cleanFile);
991+
_output->setStatus(showStatus ? cleanFile : "");
992992
_output->redraw();
993993
_state = kEditState;
994994
runtime->showKeypad(true);
@@ -999,12 +999,14 @@ void System::editSource(strlib::String loadPath, bool restoreOnExit) {
999999
case EVENT_TYPE_POINTER_PRESSED:
10001000
if (!showStatus && event.point.x < editWidget->getMarginWidth()) {
10011001
_output->setStatus(editWidget->isDirty() ? dirtyFile : cleanFile);
1002+
_output->redraw();
10021003
showStatus = true;
10031004
}
10041005
break;
10051006
case EVENT_TYPE_POINTER_RELEASED:
10061007
if (showStatus && event.point.x < editWidget->getMarginWidth() && editWidget->getScroll()) {
10071008
_output->setStatus("");
1009+
_output->redraw();
10081010
showStatus = false;
10091011
}
10101012
break;

0 commit comments

Comments
 (0)