mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
fix(android): rename method to getKeyboardTextFontFilenameOnly
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
Some checks failed
Keyman Build Summary / Summarize build status checks (push) Has been cancelled
This addresses a code review comment.
This commit is contained in:
parent
1867a7659f
commit
70282bfd5b
1 changed files with 3 additions and 3 deletions
|
|
@ -387,7 +387,7 @@ public class WebBrowserActivity extends BaseActivity {
|
|||
super.onResume();
|
||||
if (webView != null) {
|
||||
if (didFinishLoading) {
|
||||
String fontFilename = getKeyboardTextFontFilename();
|
||||
String fontFilename = getKeyboardTextFontFilenameOnly();
|
||||
if (!loadedFont.equals(fontFilename)) {
|
||||
webView.reload();
|
||||
}
|
||||
|
|
@ -436,7 +436,7 @@ public class WebBrowserActivity extends BaseActivity {
|
|||
/**
|
||||
* Returns the filename without path of the display font of the current keyboard.
|
||||
*/
|
||||
private String getKeyboardTextFontFilename() {
|
||||
private String getKeyboardTextFontFilenameOnly() {
|
||||
String fontPath = KMManager.getKeyboardTextFontFilename();
|
||||
if (fontPath == null || fontPath.isEmpty()) {
|
||||
return "";
|
||||
|
|
@ -445,7 +445,7 @@ public class WebBrowserActivity extends BaseActivity {
|
|||
}
|
||||
|
||||
private void loadFont() {
|
||||
String font = getKeyboardTextFontFilename();
|
||||
String font = getKeyboardTextFontFilenameOnly();
|
||||
if (!font.isEmpty()) {
|
||||
loadedFont = font;
|
||||
String fontUrl = String.format("%s%s", fontBaseUri, font);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue