Toast if missing information

pull/21/head
untidylamp 6 years ago committed by GitHub
parent f87339668d
commit 914148c100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,8 +43,10 @@ public class MatrixService extends Service {
if (mx == null && !botUsername.isEmpty() && !botPassword.isEmpty() && !username.isEmpty() && !device.isEmpty() && !hsUrl.isEmpty() && !syncDelay.isEmpty() && !syncTimeout.isEmpty()) {
mx = new Matrix(getApplication(), hsUrl, botUsername, botPassword, username, device, syncDelay, syncTimeout);
Log.e(TAG, "onStartCommand222: " + hsUrl );
Log.e(TAG, "onStartCommand: " + hsUrl );
Toast.makeText(this, "service starting:", Toast.LENGTH_SHORT).show();
} else if (mx == null) {
Toast.makeText(this, "Missing Information", Toast.LENGTH_SHORT).show();
}
Log.e(TAG, "onStartCommand: Service");

Loading…
Cancel
Save