• I
    Prefer onViewCreated() over onActivityCreated() · 62a95286
    Ian Lake 提交于
    The stated purpose of onActivityCreated() is to wait until the activity is created. That isn't needed here, where what we're actually doing is setting up the binding with the ViewModel, making this more suitable for onViewCreated(). As onActivityCreated() and onViewCreated() happen back to back, there's no actual difference in behavior (just increased clarity on what we're doing).
    62a95286
ProductFragment.java 3.5 KB