-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Prevent kill by Samsung Dex on plug/unplug. #1446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks a lot! This is included in version 0.90 of the app, which has now been released and should be available as an update shortly. |
|
Thank you very much @jeansch, you've just saved me 1 minute for each of my coffee pause return 😃 |
|
Yo are the best! Tested on SM Note 10+ , works like a charm =) |
| android:label="@string/application_name" | ||
| android:configChanges="keyboard|keyboardHidden|orientation|screenSize" | ||
| android:label="@string/application_name" | ||
| android:configChanges="orientation|screenSize|smallestScreenSize|density|screenLayout|uiMode|keyboard|keyboardHidden|navigation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I don't know, I don't have much knowledge in android development. I just followed documentation link from #1259.
I don't use the S10 anymore. I would suggest to give it a try, then PR if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, so copied from Samsungs documentation, okay. Unfortunately, it doesn't seem like Samsung has documented why it is specified, and I don't have any Samsung devices, so I can't test if it breaks if I remove it. But I suppose the uiMode might change when you plug/unplug, so it has to be there.
|
I also have problem
…On Feb 27, 2021 8:48 PM, "Jerry Obot" ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In app/src/main/AndroidManifest.xml
<#1446 (comment)>:
> @@ -31,11 +31,11 @@
<activity
android:name="com.termux.app.TermuxActivity"
- ***@***.***/application_name"
- android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
+ ***@***.***/application_name"
+ android:configChanges="orientation|screenSize|smallestScreenSize|density|screenLayout|uiMode|keyboard|keyboardHidden|navigation"
Hi, I don't know, I don't have much knowledge in android development. I
just followed documentation link from #1259
<#1259>.
I don't use the S10 anymore. I would suggest to give it a try, then PR if
needed.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1446 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS2ZX54P2TYJMDR6EEXRN5TTAU4ZNANCNFSM4KMX42ZA>
.
|
With this commit, activities will automatically change theme between day/night if `night-mode` `termux.properties` is not set or is set to `system` without requiring app restart. Dialog theming will be fully added in a later commit and may currently be in an inconsistent state or have crashes. The `uiMode` has been removed from `configChanges` of `TermuxActivity`, this may cause termux app to restart if samsung DEX mode is changed, if it does, then users should report it so that it can be fixed by re-adding the value and ignoring the change inside `TermuxActivity.onConfigurationChanged()`. The docs don't state if its necessary. Check related pull request #1446. Running `termux-reload-settings` will also restart `TermuxActivity`, the activity data should be preserved.
With this commit, activities will automatically change theme between day/night if `night-mode` `termux.properties` is not set or is set to `system` without requiring app restart. Dialog theming will be fully added in a later commit and may currently be in an inconsistent state or have crashes. The `uiMode` has been removed from `configChanges` of `TermuxActivity`, this may cause termux app to restart if samsung DEX mode is changed, if it does, then users should report it so that it can be fixed by re-adding the value and ignoring the change inside `TermuxActivity.onConfigurationChanged()`. The docs don't state if its necessary. Check related pull request #1446. Running `termux-reload-settings` will also restart `TermuxActivity`, the activity data should be preserved.
With this commit, activities will automatically change theme between day/night if `night-mode` `termux.properties` is not set or is set to `system` without requiring app restart. Dialog theming will be fully added in a later commit and may currently be in an inconsistent state or have crashes. The `uiMode` has been removed from `configChanges` of `TermuxActivity`, this may cause termux app to restart if samsung DEX mode is changed, if it does, then users should report it so that it can be fixed by re-adding the value and ignoring the change inside `TermuxActivity.onConfigurationChanged()`. The docs don't state if its necessary. Check related pull request termux#1446. Running `termux-reload-settings` will also restart `TermuxActivity`, the activity data should be preserved.
With this commit, activities will automatically change theme between day/night if `night-mode` `termux.properties` is not set or is set to `system` without requiring app restart. Dialog theming will be fully added in a later commit and may currently be in an inconsistent state or have crashes. The `uiMode` has been removed from `configChanges` of `TermuxActivity`, this may cause termux app to restart if samsung DEX mode is changed, if it does, then users should report it so that it can be fixed by re-adding the value and ignoring the change inside `TermuxActivity.onConfigurationChanged()`. The docs don't state if its necessary. Check related pull request termux#1446. Running `termux-reload-settings` will also restart `TermuxActivity`, the activity data should be preserved.
With this commit, activities will automatically change theme between day/night if `night-mode` `termux.properties` is not set or is set to `system` without requiring app restart. Dialog theming will be fully added in a later commit and may currently be in an inconsistent state or have crashes. The `uiMode` has been removed from `configChanges` of `TermuxActivity`, this may cause termux app to restart if samsung DEX mode is changed, if it does, then users should report it so that it can be fixed by re-adding the value and ignoring the change inside `TermuxActivity.onConfigurationChanged()`. The docs don't state if its necessary. Check related pull request termux#1446. Running `termux-reload-settings` will also restart `TermuxActivity`, the activity data should be preserved.
Closes #1259
Tested on my device (Samsung S10)
Documentation here: https://developer.samsung.com/samsung-dex/modify-optimizing