android-client icon indicating copy to clipboard operation
android-client copied to clipboard

Fixes #1584 Implemented auto toggle when network state changes.

Open danishjamal104 opened this issue 4 years ago • 1 comments

Fixes #1584

Changes

  1. Implemented NetworkChangeReceiver broadcast receiver.
  2. Registered the receiver in DashboardActivity.
  3. Override onNewIntent method to toggle the app state from offline to online and vice versa.
  4. Displays toast whenever auto switch takes place.

Screenshot Screenshot 2020-11-19 at 5 10 13 PM

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.

danishjamal104 avatar Dec 01 '20 09:12 danishjamal104

@robustTechie pleases review the changes. Thanks :)

danishjamal104 avatar Dec 01 '20 09:12 danishjamal104

We are closing this PR as it causes a branch conflict since the Java file has now been migrated to kotlin

Aditya-gupta99 avatar Jun 20 '23 13:06 Aditya-gupta99