Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Revert "Allows showing the typing indicator when auto-completing and …
Browse files Browse the repository at this point in the history
…at any tableView offset position. This logic can be re-inforced in the subclass anyway."

This reverts commit 23b5202.
  • Loading branch information
Ignacio Romero Zurbuchen committed Mar 31, 2016
1 parent 44008b0 commit 6ad4718
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/SLKTextViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,12 @@ - (void)didCancelTextEditing:(id)sender
- (BOOL)canShowTypingIndicator
{
// Don't show if the text is being edited or auto-completed.
if (_textInputbar.isEditing) {
if (_textInputbar.isEditing || self.isAutoCompleting) {
return NO;
}

// Don't show if the content offset is not at top (when inverted) or at bottom (when not inverted)
if ((self.isInverted && ![self.scrollViewProxy slk_isAtTop]) || (!self.isInverted && ![self.scrollViewProxy slk_isAtBottom])) {
return NO;
}

Expand Down

0 comments on commit 6ad4718

Please sign in to comment.