Skip to content

Commit 8156571

Browse files
committed
feat: receive configuration changes and update hardware keyboard state in foreground
1 parent 742d5de commit 8156571

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/src/main/java/com/termux/app/TermuxActivity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import android.content.BroadcastReceiver;
77
import android.content.ComponentName;
88
import android.content.Context;
9+
import android.content.res.Configuration;
910
import android.content.Intent;
1011
import android.content.IntentFilter;
1112
import android.content.ServiceConnection;
@@ -323,6 +324,12 @@ public void onResume() {
323324
mIsOnResumeAfterOnCreate = false;
324325
}
325326

327+
@Override
328+
public void onConfigurationChanged(@NonNull Configuration newConfig) {
329+
super.onConfigurationChanged(newConfig);
330+
updateExtraKeysVisibility();
331+
}
332+
326333
@Override
327334
protected void onStop() {
328335
super.onStop();

0 commit comments

Comments
 (0)