Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion app/src/main/java/at/dasher/android/DasherEngine.kt
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,16 @@ class DasherEngine(
Log.e(TAG, "nativeCreate returned 0 — dataDir=$dataDir")
return null
}
return DasherEngine(handle, userDir, frameConsumer)
val eng = DasherEngine(handle, userDir, frameConsumer)
// Realize the engine immediately with a provisional screen size.
// Realize() builds the alphabet name index (474 entries) and loads
// the selected alphabet — without this, queries made before the
// canvas lays out (getAlphabetNames, locale-follow, etc.) see an
// unrealized engine with an empty index: the alphabet picker
// showed one entry and locale-follow had nothing to match against.
// The canvas corrects the size when it actually lays out.
NativeBridge.nativeSetScreenSize(handle, 800, 600)
return eng
}
}
}
2 changes: 1 addition & 1 deletion third_party/DasherCore
Submodule DasherCore updated 642 files
Loading