private void loadUsersFromDb() { try { showProgress(); mConnector.runOperation(new LoadUserDataOperation(), false); } catch (Exception e) { e.printStackTrace(); } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_user_list); ButterKnife.bind(this); mConnector = new ChronosConnector(); mConnector.onCreate(this, savedInstanceState); mDataManager = DataManager.getInstance(); setupToolbar(); setupDrawer(); loadUsersFromDb(); }
@Override protected void onPause() { super.onPause(); mConnector.onPause(); }
@Override protected void onResume() { super.onResume(); mConnector.onResume(); }
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); mConnector.onSaveInstanceState(outState); }