Commit f51e9edf by Kim Jinsung

Task #38748【@Form Android】報告入力中はデバイスの「戻る」ボタン機能を無効化

parent 80a7f367
......@@ -364,16 +364,10 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
if (mAddReport) {
ozdCancelProcess(); // Ozd作業画面を閉じる
} else {
// 作業追加区分がなしの場合
goToMain(); // 一覧画面に遷移
}
} else {
if (keyCode != KeyEvent.KEYCODE_BACK) {
return super.onKeyUp(keyCode, event);
}
return false;
}
......
......@@ -1533,9 +1533,6 @@ public class ContentViewActivity extends ABVContentViewActivity {
if (keyCode == KeyEvent.KEYCODE_BACK) {
Logger.d(TAG, "KeyEvent.KEYCODE_BACK");
if (mOperationId != null && mOperationId > -1) {
putUserPref(AppDefType.UserPrefKey.SYNC_TARGET_OPERATION_ID, mOperationId);
}
if (isVideoMax) {
videoMaxToDefault();
} else if (isMarking) {
......@@ -1557,7 +1554,9 @@ public class ContentViewActivity extends ABVContentViewActivity {
if(isLinkedContent) {
goToBack();
} else {
moveToBack();
if (mOperationId <= 0) { //通常PDFコンテンツのみ戻る機能有効
moveToBack();
}
}
}
return false;
......
......@@ -220,13 +220,12 @@ public class ParentWebViewActivity extends ABVCheckContentViewActivity {
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
if (mOperationId != null && mOperationId > -1) {
putUserPref(AppDefType.UserPrefKey.SYNC_TARGET_OPERATION_ID, mOperationId);
}
if (isLinkedContent) {
goToBack();
} else {
finishActivity();
if (mOperationId <= 0) { //コンテンツ間リンク及び通常リンクコンテンツのみ戻る機能有効
finishActivity();
}
}
} else {
return super.onKeyUp(keyCode, event);
......
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