Skip to content

Commit

Permalink
fix: returning to app when launching editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Sep 9, 2024
1 parent c5ef5d6 commit 369663c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/src/main/java/xtr/keymapper/editor/EditorService.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package xtr.keymapper.editor;

import android.app.ActivityOptions;
import android.app.Service;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IBinder;
import android.os.RemoteException;
import android.util.Log;

Expand Down Expand Up @@ -51,9 +49,9 @@ public int onStartCommand(Intent intent, int flags, int startId) {
if (keymapConfig.editorOverlay) {
bindService(new Intent(this, TouchPointer.class), connection, Context.BIND_AUTO_CREATE);
} else {
intent = new Intent(this, EditorActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
Intent newIntent = new Intent(getApplicationContext(), EditorActivity.class);
newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
startActivity(newIntent);
}

return super.onStartCommand(intent, flags, startId);
Expand Down

0 comments on commit 369663c

Please sign in to comment.