You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
20 lines
490 B
Java
20 lines
490 B
Java
package com.topjohnwu.magisk.receivers;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
|
|
public class RootFragmentReceiver extends BroadcastReceiver {
|
|
|
|
private Receiver mFragment;
|
|
public RootFragmentReceiver(Receiver fragment) {
|
|
mFragment = fragment;
|
|
}
|
|
|
|
public void onReceive(Context context, Intent intent) {
|
|
if (intent.getAction().equals(420)) {
|
|
mFragment.onResult();
|
|
}
|
|
}
|
|
}
|