Don't scroll to position when undoing a deletion.
This seems to cause an issue where onSwipe is not being called anymore afterwards. Steps to reproduce: 1. Delete a message 2. Scroll a little bit down 3. Undo delete 4. Try delete again -> Swiping works, but callback is not being called.
This commit is contained in:
committed by
Jannis Mattheis
parent
c22c8c1417
commit
6b00bfb63c
@@ -384,7 +384,6 @@ public class MessagesActivity extends AppCompatActivity
|
|||||||
? positionPair.getAllPosition()
|
? positionPair.getAllPosition()
|
||||||
: positionPair.getAppPosition();
|
: positionPair.getAppPosition();
|
||||||
adapter.notifyItemInserted(insertPosition);
|
adapter.notifyItemInserted(insertPosition);
|
||||||
messagesView.smoothScrollToPosition(insertPosition);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user