예제 #1
0
파일: Photo.java 프로젝트: jpsember/RBuddy
 @Override
 public void onPause() {
   super.onPause();
   if (mForm != null) {
     // Display nothing, so widget stops listening; else it will leak
     imageWidget().displayPhoto(getRBuddyActivity().photoStore(), 0, null);
   }
   getRBuddyActivity().receiptFile().flush();
   getRBuddyActivity().removeListener(this);
 }
예제 #2
0
파일: Photo.java 프로젝트: jpsember/RBuddy
  @Override
  public void onResume() {
    super.onResume();

    getRBuddyActivity().addListener(this);
    setReceipt(getRBuddyActivity().getActiveReceipt());

    // If no photo is defined for this receipt, act as if he has pressed
    // the camera button
    if (mReceipt != null && mReceipt.getPhotoId() == null) {
      startImageCaptureIntent();
    }
  }