what-the-bank/sources/o/fPU.java

46 lines
1.9 KiB
Java

package o;
import android.content.Context;
import android.content.pm.PackageManager;
import android.view.WindowManager;
import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.BinaryMessenger;
import io.flutter.plugin.common.MethodChannel;
/* loaded from: classes5.dex */
public final class fPU implements FlutterPlugin {
private MethodChannel b;
@Override // io.flutter.embedding.engine.plugins.FlutterPlugin
public final void onAttachedToEngine(FlutterPlugin.FlutterPluginBinding flutterPluginBinding) {
C14957gcv.e(flutterPluginBinding, "");
BinaryMessenger binaryMessenger = flutterPluginBinding.getBinaryMessenger();
C14957gcv.c(binaryMessenger, "");
Context applicationContext = flutterPluginBinding.getApplicationContext();
C14957gcv.c(applicationContext, "");
this.b = new MethodChannel(binaryMessenger, "dev.fluttercommunity.plus/device_info");
PackageManager packageManager = applicationContext.getPackageManager();
C14957gcv.c(packageManager, "");
Object systemService = applicationContext.getSystemService("window");
C14957gcv.d(systemService, "");
fPT fpt = new fPT(packageManager, (WindowManager) systemService);
MethodChannel methodChannel = this.b;
if (methodChannel == null) {
C14957gcv.a("");
methodChannel = null;
}
methodChannel.setMethodCallHandler(fpt);
}
@Override // io.flutter.embedding.engine.plugins.FlutterPlugin
public final void onDetachedFromEngine(FlutterPlugin.FlutterPluginBinding flutterPluginBinding) {
C14957gcv.e(flutterPluginBinding, "");
MethodChannel methodChannel = this.b;
if (methodChannel == null) {
C14957gcv.a("");
methodChannel = null;
}
methodChannel.setMethodCallHandler(null);
}
}