mirror of
https://github.com/m2049r/xmrwallet
synced 2024-11-21 20:30:10 +01:00
fix receiver visibility
This commit is contained in:
parent
f08ddf93c8
commit
41e84f2e29
@ -1261,7 +1261,7 @@ public class LoginActivity extends BaseActivity
|
|||||||
if (usbManager.hasPermission(device)) {
|
if (usbManager.hasPermission(device)) {
|
||||||
connectLedger(usbManager, device);
|
connectLedger(usbManager, device);
|
||||||
} else {
|
} else {
|
||||||
ContextCompat.registerReceiver(this, usbPermissionReceiver, new IntentFilter(ACTION_USB_PERMISSION), ContextCompat.RECEIVER_NOT_EXPORTED);
|
ContextCompat.registerReceiver(this, usbPermissionReceiver, new IntentFilter(ACTION_USB_PERMISSION), ContextCompat.RECEIVER_EXPORTED);
|
||||||
usbManager.requestPermission(device,
|
usbManager.requestPermission(device,
|
||||||
PendingIntent.getBroadcast(this, 0,
|
PendingIntent.getBroadcast(this, 0,
|
||||||
new Intent(ACTION_USB_PERMISSION),
|
new Intent(ACTION_USB_PERMISSION),
|
||||||
@ -1380,7 +1380,7 @@ public class LoginActivity extends BaseActivity
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ContextCompat.registerReceiver(this, detachReceiver, new IntentFilter(UsbManager.ACTION_USB_DEVICE_DETACHED), ContextCompat.RECEIVER_NOT_EXPORTED);
|
ContextCompat.registerReceiver(this, detachReceiver, new IntentFilter(UsbManager.ACTION_USB_DEVICE_DETACHED), ContextCompat.RECEIVER_EXPORTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onLedgerAction() {
|
public void onLedgerAction() {
|
||||||
|
Loading…
Reference in New Issue
Block a user