File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
app/src/main/java/net/sourceforge/smallbasic Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ 2020-06-14 (12.19)
2
+ ANDROID: fix layout issue with samsung mobiles
3
+
1
4
2020-06-14 (12.19)
2
5
UI: Use theme colours in main display #94
3
6
UI: Added theme menu
Original file line number Diff line number Diff line change @@ -343,6 +343,12 @@ public boolean getUntrusted() {
343
343
return this ._untrusted ;
344
344
}
345
345
346
+ public int getWindowHeight () {
347
+ Rect rect = new Rect ();
348
+ findViewById (android .R .id .content ).getWindowVisibleDisplayFrame (rect );
349
+ return rect .height ();
350
+ }
351
+
346
352
@ Override
347
353
public void onGlobalLayout () {
348
354
super .onGlobalLayout ();
Original file line number Diff line number Diff line change @@ -504,6 +504,12 @@ void Runtime::loadConfig() {
504
504
int fontSize = getInteger (" getStartupFontSize" );
505
505
trace (" fontSize = %d" , fontSize);
506
506
507
+ int height = getInteger (" getWindowHeight" );
508
+ if (height != _graphics->getHeight ()) {
509
+ // height adjustment for bottom virtual navigation bar
510
+ onResize (_graphics->getWidth (), height);
511
+ }
512
+
507
513
_output->setTextColor (DEFAULT_FOREGROUND, DEFAULT_BACKGROUND);
508
514
_output->setFontSize (fontSize);
509
515
_initialFontSize = _output->getFontSize ();
You can’t perform that action at this time.
0 commit comments