这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jeansch
Copy link
Contributor

@jeansch jeansch commented Jan 28, 2020

Closes #1259
Tested on my device (Samsung S10)
Documentation here: https://developer.samsung.com/samsung-dex/modify-optimizing

@jeansch jeansch requested a review from fornwall January 28, 2020 19:39
@fornwall fornwall merged commit b8f0430 into termux:master Feb 2, 2020
@fornwall
Copy link
Member

fornwall commented Feb 2, 2020

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.

@laem
Copy link

laem commented Feb 2, 2020

Thank you very much @jeansch, you've just saved me 1 minute for each of my coffee pause return 😃

@DarthZedd
Copy link

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeansch: Is uiMode necessary to include here? It breaks automatically switching between light and dark theme with #1476. If I remove it, it switches automatically, and the terminals I have open remain open with all their contents.

Copy link
Contributor Author

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.

Copy link
Contributor

@trygveaa trygveaa Mar 11, 2021

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.

@obot7
Copy link

obot7 commented Mar 11, 2021 via email

agnostic-apollo added a commit that referenced this pull request Jan 22, 2022
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.
agnostic-apollo added a commit that referenced this pull request Jan 22, 2022
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.
Peter-Feng-32 pushed a commit to Peter-Feng-32/Termux-HWD that referenced this pull request Mar 9, 2022
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.
AdamMickiewich pushed a commit to VolyaTeam/dzida-app that referenced this pull request Aug 8, 2022
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.
contourintegrals pushed a commit to reisxd/termux-app that referenced this pull request Oct 20, 2022
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Samsung DeX support.

6 participants