mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 06:15:12 +00:00
Remove automatic scroll
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
233a610a3e
commit
9a441d8c4a
@ -166,7 +166,6 @@ public class NextcloudTalkApplication extends MultiDexApplication implements Lif
|
||||
EmojiCompat emojiCompat = EmojiCompat.init(config);
|
||||
|
||||
EmojiManager.install(new GoogleCompatEmojiProvider(emojiCompat));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -173,8 +173,6 @@ public class ConversationsListController extends BaseController implements Searc
|
||||
|
||||
private Bundle conversationMenuBundle = null;
|
||||
|
||||
private Parcelable recyclerViewState;
|
||||
|
||||
public ConversationsListController() {
|
||||
super();
|
||||
setHasOptionsMenu(true);
|
||||
@ -374,7 +372,6 @@ public class ConversationsListController extends BaseController implements Searc
|
||||
((CallItem) callItem).getModel().getLastPing()));
|
||||
}
|
||||
|
||||
recyclerViewState = recyclerView.getLayoutManager().onSaveInstanceState();
|
||||
adapter.updateDataSet(callItems, true);
|
||||
|
||||
if (searchItem != null) {
|
||||
@ -449,13 +446,6 @@ public class ConversationsListController extends BaseController implements Searc
|
||||
|
||||
fastScroller.addOnScrollStateChangeListener(this);
|
||||
adapter.setFastScroller(fastScroller);
|
||||
adapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {
|
||||
@Override
|
||||
public void onChanged() {
|
||||
super.onChanged();
|
||||
Objects.requireNonNull(recyclerView.getLayoutManager()).onRestoreInstanceState(recyclerViewState);
|
||||
}
|
||||
});
|
||||
|
||||
fastScroller.setBubbleTextCreator(position -> {
|
||||
String displayName;
|
||||
|
Loading…
Reference in New Issue
Block a user