Auto reply app helping you move away from less private messengers like WhatsApp and Facebook Messenger
GNU General Public License v3.0
421
stars
84
forks
source link
Use LocalBroadcastManager instead of context.sendBroadcast() #396
Open
Lir10 opened 2 years ago
There are few places that we use context.sendBroadcast() which might cause a crash in some devices as suggested in this thread: https://stackoverflow.com/questions/46971153/fatal-exception-android-app-remoteserviceexception-cant-deliver-broadcast-at
We should use LocalBroadcastManager instead to send local broadcasts
https://github.com/adeekshith/watomatic/blob/main/app/src/main/java/com/parishod/watomatic/service/KeepAliveService.java#L71 https://github.com/adeekshith/watomatic/blob/main/app/src/main/java/com/parishod/watomatic/viewmodel/SwipeToKillAppDetectViewModel.java#L40