GCX-HCI / grandcentrix-AndroidCodeStyle

Android code style settings for Android Studio at grandcentrix
217 stars 63 forks source link

Keep Lifecycle methods together #37

Open fjr619 opened 4 years ago

fjr619 commented 4 years ago

refer to : #3

with kotlin it didn't work

example


override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
}}

    override fun onDestroy() {
        super.onDestroy()
        Timber.e("aaaaa")
    }

    override fun onAttach(context: Context) {
        super.onAttach(context)
    }

then i click auto format opt+cmd+l it will not sort into onattach, onActivityCreated, onDestroy

kuzdu commented 4 years ago

I can confirm this, I have the same problem.

passsy commented 4 years ago

IntelliJ doesn't support rearrange code for Kotlin. Please Upvote KT-25677

kuzdu commented 4 years ago

Thanks for the quick response. I upvoted the ticket 👍