mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 13:35:33 +03:00
Fix a few crashing bugs
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
96f027726e
commit
47bc1e8bbc
2 changed files with 3 additions and 3 deletions
|
@ -105,7 +105,7 @@ public class AccountVerificationController extends BaseController {
|
|||
private boolean isAccountImport;
|
||||
private String originalProtocol;
|
||||
|
||||
public AccountVerificationController(Bundle args) {
|
||||
AccountVerificationController(Bundle args) {
|
||||
super(args);
|
||||
if (args != null) {
|
||||
baseUrl = args.getString(BundleKeys.KEY_BASE_URL);
|
||||
|
@ -230,7 +230,7 @@ public class AccountVerificationController extends BaseController {
|
|||
|
||||
@Override
|
||||
public void onError(Throwable e) {
|
||||
if (getActivity() != null) {
|
||||
if (getActivity() != null && getResources() != null) {
|
||||
getActivity().runOnUiThread(() -> progressText.setText(String.format(getResources().getString(
|
||||
R.string.nc_nextcloud_talk_app_not_installed), getResources().getString(R.string.nc_app_name))));
|
||||
}
|
||||
|
|
|
@ -563,7 +563,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||
}
|
||||
|
||||
@OnClick(R.id.emptyLayout)
|
||||
public void sendHello() {
|
||||
void sendHello() {
|
||||
if (!isHelloClicked) {
|
||||
isHelloClicked = true;
|
||||
sendMessage(getResources().getString(R.string.nc_hello) + " 👋", 1);
|
||||
|
|
Loading…
Reference in a new issue