Minor bugfixes

This commit is contained in:
2017-07-22 06:37:06 +02:00
parent 8af8419b7c
commit 8057980f6c
7 changed files with 14 additions and 7 deletions

View File

@ -219,6 +219,10 @@ public class ComposeMessageFragment extends Fragment {
}
}
}
if (recipient == null){
Toast.makeText(getContext(), R.string.error_msg_recipient_missing, Toast.LENGTH_LONG).show();
return;
}
builder = new Plaintext.Builder(MSG)
.from(identity)
.to(recipient);

View File

@ -35,7 +35,7 @@ public class WifiReceiver extends BroadcastReceiver {
if (Preferences.isWifiOnly(ctx) && isConnectedToMeteredNetwork(ctx) && bmc.isRunning()) {
bmc.shutdown();
}
if (!bmc.isRunning() && !(Preferences.isWifiOnly(ctx) && isConnectedToMeteredNetwork(ctx))) {
if (Preferences.isFullNodeActive(ctx) && !bmc.isRunning() && !(Preferences.isWifiOnly(ctx) && isConnectedToMeteredNetwork(ctx))) {
ctx.startService(new Intent(ctx, BitmessageService.class));
}
}

View File

@ -100,7 +100,8 @@ public class SyncAdapter extends AbstractThreadedSyncAdapter {
Preferences.getTrustedNode(getContext()),
Preferences.getTrustedNodePort(getContext()),
Preferences.getTimeoutInSeconds(getContext()),
true);
true
);
LOG.info("Synchronization finished");
}