Commit Graph

104 Commits

Author SHA1 Message Date
Fabian Wiesel a784eed506 Undo refactoring in ListenService 2024-03-04 20:36:06 +01:00
Fabian Wiesel 019c5e6e9f Removed public modifier 2024-03-01 20:40:00 +01:00
Fabian Wiesel be2b9084cb Missed to log the exception 2024-03-01 20:26:12 +01:00
Fabian Wiesel ea8357bb3c Use try-catch where appropriate 2024-03-01 18:32:33 +01:00
Fabian Wiesel 282753854f Made volumeHistory public 2024-03-01 18:03:33 +01:00
Fabian Wiesel eba51360c1 Remove unnessary unit from function 2024-03-01 18:01:46 +01:00
Fabian Wiesel 03b7aff579 Missing closing brace 2024-03-01 17:59:01 +01:00
Fabian Wiesel f5aa9da84c Various style fixes 2024-03-01 17:24:35 +01:00
Fabian Wiesel b9964d24d2 Changed G711UCodec license comment 2024-03-01 17:10:00 +01:00
Fabian Wiesel d7ac99665d Added comment about modifications 2024-02-28 21:32:28 +01:00
Fabian Wiesel 32235302c6 Use lateinit for notificationManager and nsdManager 2024-02-26 21:05:11 +01:00
Fabian Wiesel 41506bc601 Wrap java exceptions in runCatching blocks 2024-02-26 20:42:45 +01:00
Fabian Wiesel c6c60d9dbd Move service name to constructor 2024-02-26 19:41:52 +01:00
Fabian Wiesel 58095bc67b Use ?.let instead if-null-test, avoid runnable 2024-02-26 19:41:52 +01:00
Fabian Wiesel fa6e4da2c5 Move DiscoverActivity constant to companion object 2024-02-26 19:41:52 +01:00
Fabian Wiesel c5b542a333 Unused arguments and unnessecary null checks 2024-02-26 19:41:52 +01:00
Fabian Wiesel 5d17453c14 G711UCode: Rename variable to avoid shadowing 2024-02-26 19:41:52 +01:00
Fabian Wiesel dee59d4735 Use foojay-resolver and set all java version to 21 2024-02-26 19:41:52 +01:00
Fabian Wiesel 029e82941e Change AudioCodecDefines to simple object 2024-02-26 19:41:52 +01:00
Fabian Wiesel b8025b2300 G711UCodec move cod out of inner run() 2024-02-26 19:41:52 +01:00
Fabian Wiesel cf790b330b G711UCodec: Drop unused function getSampleCount 2024-02-26 19:41:52 +01:00
Fabian Wiesel 2d57b16226 Move kotlin files into its own directory 2024-02-26 19:41:52 +01:00
Fabian Wiesel 9101c01af6 Merge branch 'master' into kotlin 2024-02-26 18:21:22 +01:00
edr 775cea84a4 v1.2 2024-02-24 16:45:58 +01:00
Fabian Wiesel cd6c4b60a6 WIP: Modernize the Stack Kotlin Edition 2024-02-23 17:57:54 +01:00
edr 9526f23c0c More specific log message in ListenActivity.java 2024-02-21 21:21:59 +01:00
edr 30a0c26826 Minor fixup MonitorActivity.java 2024-02-21 21:21:59 +01:00
edr 1077b2e527 Minor fixup in MonitorService.java 2024-02-21 21:21:59 +01:00
Fabian Wiesel 77c8456d45 Only log the exception when unexpected
The socket is closed in another thread to stop the transmission.
That causes an exception, but that is the expected behaviour, so
do not log it.
2024-02-21 21:21:59 +01:00
Fabian Wiesel 523ee93d75 Split-off MonitorService
Same motivation as for the parent device:
The monitor activity will be quickly destroyed,
unless it is connected to a foreground service.

By moving the thread and audio listener to a service,
this should be avoided.
2024-02-21 21:21:59 +01:00
edr 1ac22e872b Merge branch 'master' into feature/listen-service 2024-02-21 18:58:01 +01:00
edr 7473fffa8a Fix possible NullPointerException 2024-02-21 18:56:14 +01:00
edr f412e43e02 Use more arbitrary ID 2024-02-21 18:51:07 +01:00
edr 2818384c6e Reduce TAG visibility 2024-02-21 18:50:48 +01:00
edr 6edc59236a Remove member var name m prefixes 2024-02-21 18:47:29 +01:00
edr 2190ef1c94 Fix inappropriate canvas.getHeight/Width 2024-02-21 16:09:50 +01:00
edr 3be08d09f0 Make all license comments non-javadoc 2024-02-21 16:08:25 +01:00
edr c9c4cdc282 Make paint member final 2024-02-21 16:00:05 +01:00
edr 8e754557fa Add missing license headers 2024-02-21 15:57:29 +01:00
edr 6b6458b04b Fix ArrayIndexOutOfBoundsException 2024-02-19 20:45:15 +01:00
Fabian Wiesel d7e6ba2b5a Post error message from Listening Thread 2024-02-17 07:49:11 +01:00
edr 8a75044153 Remove unused entry from strings.xml 2024-02-17 02:46:31 +01:00
edr 43a7a66caa Fix possible NullPointerExceptions 2024-02-17 02:44:18 +01:00
edr e95a554717 Delete unused method 2024-02-17 02:09:27 +01:00
edr 703406b517 Taking snapshots of volume view no longer needed 2024-02-17 02:07:44 +01:00
edr 0ae2ca4a65 Fix volume monitor scrolling 2024-02-17 01:17:41 +01:00
edr 7359716c09 Fix notification click handler 2024-02-17 01:00:55 +01:00
edr 5b0ccaa8a1 Store child device name as member var that can be queried later 2024-02-17 00:59:19 +01:00
Fabian Wiesel 7fd7451700 Get last length elements, not first 2024-02-17 00:55:27 +01:00
edr a9f5b233e6 Avoid synchronized by scheduling writes on the main event loop 2024-02-17 00:01:59 +01:00