Skip to content

Commit

Permalink
Update MainViewModel.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
vfarid committed May 22, 2024
1 parent 00a90b8 commit b17e736
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,7 @@ class MainViewModel(application: Application) : AndroidViewModel(application) {
settingsStorage.putString(AppConfig.PREF_FRAGMENT_INTERVAL, bestFragmentBean?.interval)
settingsStorage.putBoolean(AppConfig.PREF_FRAGMENT_ENABLED, true)
}
if (isRunning.value == true) {
Utils.stopVService(getApplication<Application>().applicationContext)
Utils.startVServiceFromToggle(getApplication<Application>().applicationContext)
}

getApplication<AngApplication>().toast(R.string.fragment_test_done)
} else {
getApplication<AngApplication>().toast(R.string.fragment_test_failed)
Expand Down

0 comments on commit b17e736

Please sign in to comment.