Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ public void afterTextChanged(Editable s) {
});
}

@Override
public void onDestroy() {
super.onDestroy();
dismissErrorDialog();
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.send_menu,menu);
Expand Down Expand Up @@ -580,6 +586,12 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
}

private void dismissErrorDialog() {
if (errorDialog != null) {
errorDialog.dismiss();
}
}

private void showErrorDialog(int resStr){
showErrorDialog(getString(resStr));
}
Expand Down