[android] fix bug where onboarding is shown again when activity resumes

This commit is contained in:
Torsten Grote
2019-02-15 16:22:42 -02:00
parent 5130c83556
commit f4bdd201a3
2 changed files with 5 additions and 1 deletions

View File

@@ -229,11 +229,15 @@ public class ConversationViewModel extends AndroidViewModel {
}
}
@UiThread
void onImageOnboardingSeen() {
showImageOnboarding.setValue(false);
onOnboardingSeen(SHOW_ONBOARDING_IMAGE);
}
@UiThread
void onIntroductionOnboardingSeen() {
showIntroductionOnboarding.setValue(false);
onOnboardingSeen(SHOW_ONBOARDING_INTRODUCTION);
}

View File

@@ -67,7 +67,7 @@ public class TextSendController implements TextInputListener {
LENGTH_SHORT).show();
return false;
}
return ready && (canSendEmptyText() || !textInput.isEmpty());
return ready && (canSendEmptyText() || !textIsEmpty);
}
protected boolean canSendEmptyText() {