コード例 #1
0
 @Override
 public void onStepChange(PicSphere sphere, int newStep) {
   if (CameraActivity.getCameraMode() == CameraActivity.CAMERA_MODE_PICSPHERE) {
     mContext.setHelperText(
         String.format(
             mContext.getString(R.string.picsphere_rendering_progress),
             sphere.getRenderProgress()));
   }
 }
コード例 #2
0
  @Override
  public void onRenderDone(PicSphere sphere) {
    mPicSpheres.remove(sphere);

    if (CameraActivity.getCameraMode() == CameraActivity.CAMERA_MODE_PICSPHERE) {
      mContext.setHelperText(mContext.getString(R.string.picsphere_start_hint));
    }

    if (mCapture3DRenderer != null) {
      mCapture3DRenderer.setCamPreviewVisible(true);
    }
  }