sendBt might be null
This commit is contained in:
parent
fae80fbb26
commit
801ec4e7fa
@ -288,6 +288,7 @@ public class FDroidApp extends Application {
|
|||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
found = false;
|
found = false;
|
||||||
}
|
}
|
||||||
|
if (sendBt != null) {
|
||||||
if (!found) {
|
if (!found) {
|
||||||
Toast.makeText(this, R.string.bluetooth_activity_not_found,
|
Toast.makeText(this, R.string.bluetooth_activity_not_found,
|
||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
@ -297,6 +298,7 @@ public class FDroidApp extends Application {
|
|||||||
activity.startActivity(sendBt);
|
activity.startActivity(sendBt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static final ServiceConnection serviceConnection = new ServiceConnection() {
|
private static final ServiceConnection serviceConnection = new ServiceConnection() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user