Commit e054b7ed by Kim Jinsung

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

parent 5ffd63b8
......@@ -14,6 +14,7 @@ import com.theta.model.Photo;
import com.theta.model.RotateInertia;
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.log.Logger;
import jp.agentec.abook.abv.launcher.android.R;
......@@ -65,6 +66,9 @@ public class ThetaImagePreviewActivity extends ThetaActivity {
@Override
public void onClick(DialogInterface dialog, int which) {
showProgressPopup();
CommonExecutor.execute(new Runnable() { //スレッド化
@Override
public void run() {
if (mThetaHelper.thetaImageLocalSave(mTexture.getPhoto(), mFileId)) {
showSimpleAlertDialog(R.string.app_name, R.string.msg_theta_image_send_success);
isSavedSuccess = true;
......@@ -74,6 +78,10 @@ public class ThetaImagePreviewActivity extends ThetaActivity {
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