Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 49b6cba9 authored by Daria Evdokimova's avatar Daria Evdokimova
Browse files

Refactoring HandleVoiceApiCalls

Refactored HandleVoiceApiCalls to call private classes for AsyncTask.
Changed the default behavior of DELETE_CLOCK when a city is not
specified. Now it just opens the CitiesActivity where a user can choose
which city they want to delete.
Refactored notifySuccess and notifyFailure methods to make them static
so that they are called from other classes and work for Async methods.
Also added these two methods for every outcome of any voice action.
Refactored HandleVoiceApiCalls to use the App context in all the async
methods so that it doesn't try to use the activity context after the
activity was finished.
Changed DISMISS_UPCOMING_ALARM to use SEARCH_MODE's

Change-Id: I897617659523f45a6d8d6b06f6469f0e3cb421da
parent 55ff960b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment