Fix tests crash and fix video call pause button
This commit is contained in:
parent
cf63f3fe0c
commit
095d562ed0
2 changed files with 8 additions and 9 deletions
|
@ -489,6 +489,8 @@ public class CallActivity extends Activity implements OnClickListener, SensorEve
|
||||||
} else {
|
} else {
|
||||||
video.setImageResource(R.drawable.camera_default);
|
video.setImageResource(R.drawable.camera_default);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
video.setImageResource(R.drawable.camera_default);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -199,9 +199,11 @@ public class AssistantActivity extends Activity implements OnClickListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void hideKeyboard(){
|
public void hideKeyboard(){
|
||||||
InputMethodManager imm = (InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE);
|
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
View view = getCurrentFocus();
|
View view = this.getCurrentFocus();
|
||||||
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
|
if (imm != null && view != null) {
|
||||||
|
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void launchEchoCancellerCalibration(boolean sendEcCalibrationResult) {
|
private void launchEchoCancellerCalibration(boolean sendEcCalibrationResult) {
|
||||||
|
@ -219,14 +221,9 @@ public class AssistantActivity extends Activity implements OnClickListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void logIn(String username, String password, String displayName, String domain, TransportType transport, boolean sendEcCalibrationResult) {
|
private void logIn(String username, String password, String displayName, String domain, TransportType transport, boolean sendEcCalibrationResult) {
|
||||||
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
|
||||||
if (imm != null && getCurrentFocus() != null) {
|
|
||||||
imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
saveCreatedAccount(username, password, displayName, domain, transport);
|
saveCreatedAccount(username, password, displayName, domain, transport);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void checkAccount(String username, String password, String displayName, String domain) {
|
public void checkAccount(String username, String password, String displayName, String domain) {
|
||||||
saveCreatedAccount(username, password, displayName, domain, null);
|
saveCreatedAccount(username, password, displayName, domain, null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue