fix smooth scroll on duplicates screen
This commit is contained in:
parent
dbe6a560c2
commit
b55cfed7a2
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ import android.support.annotation.NonNull;
|
||||||
import android.support.annotation.Nullable;
|
import android.support.annotation.Nullable;
|
||||||
import android.support.design.widget.CollapsingToolbarLayout;
|
import android.support.design.widget.CollapsingToolbarLayout;
|
||||||
import android.support.v4.app.FragmentManager;
|
import android.support.v4.app.FragmentManager;
|
||||||
|
import android.support.v4.view.ViewCompat;
|
||||||
import android.support.v4.widget.NestedScrollView;
|
import android.support.v4.widget.NestedScrollView;
|
||||||
import android.support.v7.widget.LinearLayoutManager;
|
import android.support.v7.widget.LinearLayoutManager;
|
||||||
import android.support.v7.widget.RecyclerView;
|
import android.support.v7.widget.RecyclerView;
|
||||||
|
@ -124,6 +125,7 @@ public class ImportDuplicatesFragment extends BaseOsmAndFragment implements View
|
||||||
keepBothBtn.setOnClickListener(this);
|
keepBothBtn.setOnClickListener(this);
|
||||||
replaceAllBtn.setOnClickListener(this);
|
replaceAllBtn.setOnClickListener(this);
|
||||||
list = root.findViewById(R.id.list);
|
list = root.findViewById(R.id.list);
|
||||||
|
ViewCompat.setNestedScrollingEnabled(list, false);
|
||||||
ViewTreeObserver treeObserver = buttonsContainer.getViewTreeObserver();
|
ViewTreeObserver treeObserver = buttonsContainer.getViewTreeObserver();
|
||||||
treeObserver.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
treeObserver.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue