Fixed header elevation shadow on rotate
Change-Id: I1a4b55cf9af67d93e56d84378036c0061b6e8104
This commit is contained in:
@@ -12,6 +12,7 @@ import android.view.ViewGroup;
|
||||
import android.view.ViewOutlineProvider;
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
import com.android.launcher3.BaseRecyclerView;
|
||||
import com.android.launcher3.R;
|
||||
|
||||
/**
|
||||
@@ -28,7 +29,7 @@ public abstract class HeaderElevationController extends RecyclerView.OnScrollLis
|
||||
|
||||
@Override
|
||||
public final void onScrolled(RecyclerView recyclerView, int dx, int dy) {
|
||||
mCurrentY += dy;
|
||||
mCurrentY = ((BaseRecyclerView) recyclerView).getCurrentScrollY();
|
||||
onScroll(mCurrentY);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user