sendBt might be null
This commit is contained in:
parent
fae80fbb26
commit
801ec4e7fa
@ -288,13 +288,15 @@ public class FDroidApp extends Application {
|
|||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
found = false;
|
found = false;
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (sendBt != null) {
|
||||||
Toast.makeText(this, R.string.bluetooth_activity_not_found,
|
if (!found) {
|
||||||
Toast.LENGTH_SHORT).show();
|
Toast.makeText(this, R.string.bluetooth_activity_not_found,
|
||||||
activity.startActivity(Intent.createChooser(sendBt, getString(R.string.choose_bt_send)));
|
Toast.LENGTH_SHORT).show();
|
||||||
} else {
|
activity.startActivity(Intent.createChooser(sendBt, getString(R.string.choose_bt_send)));
|
||||||
sendBt.setClassName(bluetoothPackageName, className);
|
} else {
|
||||||
activity.startActivity(sendBt);
|
sendBt.setClassName(bluetoothPackageName, className);
|
||||||
|
activity.startActivity(sendBt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user