Commit a46762a
committed
Changed: Use termux-shared
- All hardcoded `com.termux` constants have been removed and will be handled by `TermuxConstants` and `TermuxPreferenceConstants`.
- Fixed issue with losing reference to `TermuxFloatView` in `TermuxFloatService` and destroying view not working.
- Removed unnecessary toasts and fixed custom broken ones by using the one provided by `Logger` class.
- Updated `TerminalView` and `TerminalSession` to latest versions and removed duplicated `TerminalSession` code based on old `TermuxService` and start using `TermuxSession` which will also have consistent shell environment as `termux-app`.
- Removed `SharedPrefernces` management and use the one in `termux-shared` provided by `TermuxFloatAppSharedPreferences`.
- Use action constants defined in `TermuxConstants` for `TermuxFloatService`.
- Use notification constants defined in `TermuxConstants` for `TermuxFloatService`.
- Use `KeyboardUtils` for showing and hiding keyboard.
- Implement logging system based on `Logger` class. Log levels can be changed in `termux-app` settings but require restarting `termux-float` for changes to take effect since both apps run in different processes.
- Fixed potential `IllegalArgumentException` when adding and removing `TermuxFloatView` to `WindowManager`.
- Added crash handler so that crash notifications can be shown in `termux-app` at startup.1 parent 529268a commit a46762a
File tree
10 files changed
+381
-279
lines changed- app
- src/main
- java/com/termux/window
- res/values
10 files changed
+381
-279
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
52 | | - | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
Lines changed: 0 additions & 32 deletions
This file was deleted.
0 commit comments