DroidKaigi / conference-app-2018

The Official Conference App for DroidKaigi 2018 Tokyo
Apache License 2.0
1.35k stars 332 forks source link

Fix: horizontal sessions scroll to wrong position on favorited #595

Closed kubode closed 6 years ago

kubode commented 6 years ago

Issue

Overview (Required)

Links

Screenshot

Before After
kekka kekka

個人的なメモ

takahirom commented 6 years ago

🆒

takahirom commented 6 years ago

This code is one of the places where I took the longest time to implement DroidKaigi 😓

takahirom commented 6 years ago

I don't know about payload

takahirom commented 6 years ago

Does current release have that support? 🤔 https://github.com/lisawray/groupie/blob/master/library/src/main/java/com/xwray/groupie/Section.java#L163

takahirom commented 6 years ago

It probably 2.1.0-alpha1 😓

takahirom commented 6 years ago

Please fix lint warnings 🙇

kubode commented 6 years ago

Fixed 😄

takahirom commented 6 years ago

Probably you can use this format 👍 https://kotlinlang.org/docs/reference/coding-conventions.html#function-formatting

takahirom commented 6 years ago

Can you fix to use normal expression 🙇 Expression functions should not wrap to two lines. If an expression function grows to require wrapping, use a normal function body, a return declaration, and normal expression wrapping rules instead. https://android.github.io/kotlin-guides/style.html#expression-functions

kubode commented 6 years ago

In this case, lambda expression is declaring as default argument. So, I think it can't use normal expression.

takahirom commented 6 years ago

Sorry I made mistake

takahirom commented 6 years ago

I understood. Thanks you! I learned a lot by this pr!👍