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

Commit 51884902 authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

fix generation of multiple file

parent ea172591
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -68,7 +68,12 @@ public class InitializerService extends Service implements OnRemoteOperationList
    @Override
    public int onStartCommand( Intent intent, int flags, int startId ) {
        Log.i(TAG, "onStartCommand(...)");
        if(Thread.getDefaultUncaughtExceptionHandler().getClass().getSimpleName().equals(ServiceExceptionHandler.class.getSimpleName())){
            Log.d("ObserverService", "ServiceExceptionHandler already set!");
        }else{
            Thread.setDefaultUncaughtExceptionHandler(new ServiceExceptionHandler(this));
        }

        //Get account
        SharedPreferences prefs = this.getSharedPreferences( AppConstants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE );

+5 −2
Original line number Diff line number Diff line
@@ -80,8 +80,11 @@ public class ObserverService extends Service implements OnRemoteOperationListene
    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.i(TAG, "onStartCommand("+startId+")");
        if(Thread.getDefaultUncaughtExceptionHandler().getClass().getSimpleName().equals(ServiceExceptionHandler.class.getSimpleName())){
            Log.d("ObserverService", "ServiceExceptionHandler already set!");
        }else{
            Thread.setDefaultUncaughtExceptionHandler(new ServiceExceptionHandler(this));

        }
        SharedPreferences prefs = this.getSharedPreferences(AppConstants.SHARED_PREFERENCE_NAME, Context.MODE_PRIVATE);
        String accountName = prefs.getString(AccountManager.KEY_ACCOUNT_NAME, "");
        String accountType = prefs.getString(AccountManager.KEY_ACCOUNT_TYPE, "");
+5 −11
Original line number Diff line number Diff line
@@ -63,15 +63,6 @@ public class OperationManagerService extends Service implements OnRemoteOperatio
    @Override
    public void onDestroy() {
        Log.i(TAG, "onDestroy()");
        /*this.mOperationsQueue.clear();
        for(int i =-1, size = mThreadPool.length;++i < size;){
            try{
                if(mThreadPool[i] != null)
                    mThreadPool[i].interrupt();}
            catch(Exception e){
                Log.e(TAG, e.toString());
            }
        }*/
        super.onDestroy();
    }

@@ -248,8 +239,11 @@ public class OperationManagerService extends Service implements OnRemoteOperatio
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.i(TAG, "onStartCommand()");

        if(Thread.getDefaultUncaughtExceptionHandler().getClass().getSimpleName().equals(ServiceExceptionHandler.class.getSimpleName())){
            Log.d("ObserverService", "ServiceExceptionHandler already set!");
        }else{
            Thread.setDefaultUncaughtExceptionHandler(new ServiceExceptionHandler(this));

        }
        Bundle extras = intent.getExtras();
        Log.d(TAG, "OperationManagerService recieved "+(extras == null ? "null extras": extras.size()+" operations to perform") );