Skip to content
Snippets Groups Projects
Commit a3194571 authored by Florian Taurer's avatar Florian Taurer
Browse files

changed bugfix, no startservice call after crashing

parent 8260b482
Branches
Tags
No related merge requests found
...@@ -63,7 +63,6 @@ public class SoniService extends Service { ...@@ -63,7 +63,6 @@ public class SoniService extends Service {
if(intent == null){ if(intent == null){
Intent service = new Intent(getApplicationContext(), SoniService.class); Intent service = new Intent(getApplicationContext(), SoniService.class);
service.setAction(ServiceConstants.ACTION.STOPFOREGROUND_ACTION); service.setAction(ServiceConstants.ACTION.STOPFOREGROUND_ACTION);
startService(service);
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
SharedPreferences.Editor ed = sp.edit(); SharedPreferences.Editor ed = sp.edit();
ed.putString(ConfigConstants.PREFERENCES_APP_STATE, StateEnum.ON_HOLD.toString()); ed.putString(ConfigConstants.PREFERENCES_APP_STATE, StateEnum.ON_HOLD.toString());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment