コード例 #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   presenterHolder = PresenterHolder.createHolder(this);
   presenterHolder.init(savedInstanceState);
   getPresenter().attach(this);
 }
コード例 #2
0
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (isFinishing()) {
     presenterHolder.onDestroy();
   }
 }
コード例 #3
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   presenterHolder.saveState(outState);
 }
コード例 #4
0
 public P getPresenter() {
   return presenterHolder.getPresenter();
 }