android-client
android-client copied to clipboard
Fixes #1584 Implemented auto toggle when network state changes.
Fixes #1584
Changes
- Implemented
NetworkChangeReceiver
broadcast receiver. - Registered the receiver in
DashboardActivity
. - Override
onNewIntent
method to toggle the app state from offline to online and vice versa. - Displays toast whenever auto switch takes place.
Screenshot
Please make sure these boxes are checked before submitting your pull request - thanks!
-
[x] Apply the
MifosStyle.xml
style template to your code in Android Studio. -
[x] Run the unit tests with
./gradlew check
to make sure you didn't break anything -
[x] If you have multiple commits please combine them into one commit by squashing them.
@robustTechie pleases review the changes. Thanks :)
We are closing this PR as it causes a branch conflict since the Java file has now been migrated to kotlin