mirror of
https://github.com/tijder/SmsMatrix.git
synced 2024-10-27 18:24:01 +00:00
Toast if missing information
This commit is contained in:
parent
f87339668d
commit
914148c100
@ -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()) {
|
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);
|
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();
|
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");
|
Log.e(TAG, "onStartCommand: Service");
|
||||||
|
Loading…
Reference in New Issue
Block a user