diff --git a/app/src/main/java/com/topjohnwu/magisk/superuser/SuRequestActivity.java b/app/src/main/java/com/topjohnwu/magisk/superuser/SuRequestActivity.java index f419de8ad..b9d02f72c 100644 --- a/app/src/main/java/com/topjohnwu/magisk/superuser/SuRequestActivity.java +++ b/app/src/main/java/com/topjohnwu/magisk/superuser/SuRequestActivity.java @@ -83,7 +83,7 @@ public class SuRequestActivity extends Activity implements CallbackEvent.Listene } }.startWatching(); - new SocketManager().exec(); + new SocketManager(this).exec(); } void showRequest() { @@ -170,6 +170,10 @@ public class SuRequestActivity extends Activity implements CallbackEvent.Listene private class SocketManager extends ParallelTask { + public SocketManager(Activity context) { + super(context); + } + @Override protected Boolean doInBackground(Void... params) { try{