Skip to content

Commit ce46c26

Browse files
committed
feat: always allow new window shortcut
In normal window mode, the CTRL+ALT+W shortcut can now open a new window and enter multi-window mode automatically.
1 parent df7491b commit ce46c26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ public void onMultiWindowModeChanged(boolean isInMultiWindowMode) {
415415
}
416416
}
417417

418-
/** Add a new window in multi-window mode */
418+
/** Add a new window */
419419
public void addNewWindow() {
420-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && isInMultiWindowMode()) {
420+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
421421
Intent intent = new Intent(this, TermuxActivity.class);
422422
intent.addFlags(Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT |
423423
Intent.FLAG_ACTIVITY_NEW_TASK |

0 commit comments

Comments
 (0)