mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 00:27:39 +00:00
Fix su request crashing
This commit is contained in:
parent
df7a5bf149
commit
f9ab060403
@ -83,7 +83,7 @@ public class SuRequestActivity extends Activity implements CallbackEvent.Listene
|
|||||||
}
|
}
|
||||||
}.startWatching();
|
}.startWatching();
|
||||||
|
|
||||||
new SocketManager().exec();
|
new SocketManager(this).exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
void showRequest() {
|
void showRequest() {
|
||||||
@ -170,6 +170,10 @@ public class SuRequestActivity extends Activity implements CallbackEvent.Listene
|
|||||||
|
|
||||||
private class SocketManager extends ParallelTask<Void, Void, Boolean> {
|
private class SocketManager extends ParallelTask<Void, Void, Boolean> {
|
||||||
|
|
||||||
|
public SocketManager(Activity context) {
|
||||||
|
super(context);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Boolean doInBackground(Void... params) {
|
protected Boolean doInBackground(Void... params) {
|
||||||
try{
|
try{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user