mirror of
https://github.com/fankes/termux-app.git
synced 2025-10-25 21:29:20 +08:00
Changed: Do not recreate TermuxActivity enabled in 6631599f when TermuxService starts a session
Activity will only be recreated when `termux-reload-settings` is run or `night-mode` config does not equal current system mode when TermuxActivity is initially started. Running `termux-reload-settings` can cause some problems if some variable whose state should be maintained or reset is not being done so correctly, like termux session shortcuts weren't before 4fd48a5a. It requires further testing and any bugs should be reported.
This commit is contained in:
@@ -8,7 +8,7 @@ import java.util.Formatter;
|
||||
import java.util.List;
|
||||
|
||||
/*
|
||||
* Version: v0.34.0
|
||||
* Version: v0.35.0
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Changelog
|
||||
@@ -214,6 +214,9 @@ import java.util.List;
|
||||
*
|
||||
* - 0.34.0 (2021-10-26)
|
||||
* - Move `RESULT_SENDER` to `com.termux.shared.shell.command.ShellCommandConstants`.
|
||||
*
|
||||
* - 0.35.0 (2022-01-28)
|
||||
* - Add `TERMUX_APP.TERMUX_ACTIVITY.EXTRA_RECREATE_ACTIVITY`.
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -864,6 +867,9 @@ public final class TermuxConstants {
|
||||
@Deprecated
|
||||
public static final String EXTRA_RELOAD_STYLE = TermuxConstants.TERMUX_PACKAGE_NAME + ".app.reload_style"; // Default: "com.termux.app.reload_style"
|
||||
|
||||
/** Intent {@code boolean} extra for whether to recreate activity for the TERMUX_ACTIVITY.ACTION_RELOAD_STYLE intent. */
|
||||
public static final String EXTRA_RECREATE_ACTIVITY = TERMUX_APP.TERMUX_ACTIVITY_NAME + ".EXTRA_RECREATE_ACTIVITY"; // Default: "com.termux.app.TermuxActivity.EXTRA_RECREATE_ACTIVITY"
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user