Commit e054b7ed by Kim Jinsung

THETAプレビュー画面から転送処理をスレッド化

parent 5ffd63b8
...@@ -14,6 +14,7 @@ import com.theta.model.Photo; ...@@ -14,6 +14,7 @@ import com.theta.model.Photo;
import com.theta.model.RotateInertia; import com.theta.model.RotateInertia;
import com.theta.network.ImageData; import com.theta.network.ImageData;
import jp.agentec.abook.abv.bl.common.CommonExecutor;
import jp.agentec.abook.abv.bl.common.constant.ABookKeys; import jp.agentec.abook.abv.bl.common.constant.ABookKeys;
import jp.agentec.abook.abv.bl.common.log.Logger; import jp.agentec.abook.abv.bl.common.log.Logger;
import jp.agentec.abook.abv.launcher.android.R; import jp.agentec.abook.abv.launcher.android.R;
...@@ -65,13 +66,20 @@ public class ThetaImagePreviewActivity extends ThetaActivity { ...@@ -65,13 +66,20 @@ public class ThetaImagePreviewActivity extends ThetaActivity {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
showProgressPopup(); showProgressPopup();
if (mThetaHelper.thetaImageLocalSave(mTexture.getPhoto(), mFileId)) { CommonExecutor.execute(new Runnable() { //スレッド化
showSimpleAlertDialog(R.string.app_name, R.string.msg_theta_image_send_success); @Override
isSavedSuccess = true; public void run() {
} else { if (mThetaHelper.thetaImageLocalSave(mTexture.getPhoto(), mFileId)) {
showSimpleAlertDialog(R.string.app_name, R.string.msg_theta_image_send_fail); showSimpleAlertDialog(R.string.app_name, R.string.msg_theta_image_send_success);
} isSavedSuccess = true;
closeProgressPopup(); } else {
showSimpleAlertDialog(R.string.app_name, R.string.msg_theta_image_send_fail);
}
closeProgressPopup();
}
});
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment