This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseFragment extends Fragment { | |
protected long dbId = -1; | |
protected ViewModelFactory viewModelFactory; | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
if (savedInstanceState != null) { | |
dbId = savedInstanceState.getLong("dbId", -1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Functional interface for binding data to a view | |
*/ | |
public interface ViewBinder<V extends View> { | |
void bindView(V view, ViewItem<V> item); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseFragment extends Fragment { | |
@Override | |
public void onResume() { | |
super.onResume(); | |
MyApplication.get().setAppIsReady(true); | |
} | |
} |