示例#1
0
 private void loadUsersFromDb() {
   try {
     showProgress();
     mConnector.runOperation(new LoadUserDataOperation(), false);
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
示例#2
0
  @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();
  }
示例#3
0
 @Override
 protected void onPause() {
   super.onPause();
   mConnector.onPause();
 }
示例#4
0
 @Override
 protected void onResume() {
   super.onResume();
   mConnector.onResume();
 }
示例#5
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   mConnector.onSaveInstanceState(outState);
 }