Skip to content

Commit

Permalink
fix(settings): also apply keyboard UI changes while deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
iovxw committed Dec 14, 2021
1 parent 4cb8108 commit 55036aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/osfans/trime/ime/core/Trime.java
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ private void reset() {
resetKeyboard();
}

/** Must be called on the UI thread */
public void initKeyboard() {
reset();
setNavBarColor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import com.osfans.trime.R
import com.osfans.trime.common.InputMethodUtils
import com.osfans.trime.databinding.PrefActivityBinding
import com.osfans.trime.ime.core.Preferences
import com.osfans.trime.ime.core.Trime
import com.osfans.trime.settings.components.SchemaPickerDialog
import com.osfans.trime.util.AndroidVersion
import com.osfans.trime.util.RimeUtils
Expand Down Expand Up @@ -177,6 +178,7 @@ class PrefMainActivity :
setMessage(getString(R.string.deploy_progress))
show()
}
Trime.getServiceOrNull()?.initKeyboard()
launch {
withContext(Dispatchers.IO) {
try {
Expand Down

0 comments on commit 55036aa

Please sign in to comment.