Commit 3b82bc1c by onuma

ダイアログの表示にshowAlertDialogを使用するように変更。gradle.propertiesを元にもどした。

parent 95d883e7
package jp.agentec.abook.abv.ui.viewer.activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
......@@ -180,13 +181,14 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
@Override
public void onClick(View v) {
// リソースパターンの適用
int messageResourceId = PatternStringUtil.patternToInt(getApplicationContext(),
R.string.msg_oz_report_cancel,
getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0));
// int messageResourceId = PatternStringUtil.patternToInt(getApplicationContext(),
// R.string.msg_oz_report_cancel,
// getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0));
showCancelConfirmAlert(PatternStringUtil.patternToInt(getApplicationContext(),
R.string.back,
getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0)),messageResourceId);
// showCancelConfirmAlert(PatternStringUtil.patternToInt(getApplicationContext(),
// R.string.back,
// getUserPref(AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0)),messageResourceId);
showCancelConfirmAlert();
  • 不要なソースはコメントではなく削除お願いします。

Please register or sign in to reply
}
});
......@@ -651,11 +653,11 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
return true;
}
// 左上の×ボタンを押したときの処理
private void showCancelConfirmAlert(final int dialogTitle, int dialogMessage) {
ABookAlertDialog logoutAkert = AlertDialogUtil.createAlertDialog(this, dialogTitle);
logoutAkert.setMessage(dialogMessage);
logoutAkert.setButton(DialogInterface.BUTTON_POSITIVE, getResources().getString(R.string.confirm), new DialogInterface.OnClickListener() {
/**
* 左上の×ボタンを押したときの処理(ダイアログを表示する)
*/
private void showCancelConfirmAlert() {
AlertDialogUtil.showAlertDialog(this, getString(R.string.confirm), getString(R.string.msg_oz_report_cancel), false, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
mButtonStatus = R.id.btn_close;
......@@ -663,8 +665,6 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
doProcess(); // HTML側に閉じる処理を行う
}
});
logoutAkert.setButton(DialogInterface.BUTTON_NEGATIVE, getResources().getString(R.string.cancel), (DialogInterface.OnClickListener) null);
showAlertDialog(logoutAkert);
}
// アラート表示処理
......
......@@ -93,7 +93,7 @@ hope_page=http://www.agentec.jp
contact_email=abook-appsupport@agentec.jp
#Log Settings
log_level=1
log_level=2
default_log_name=abvje
#エラーレポート/Exportログ送信方法 1:acms 2:平文メール(開発・テスト時のみ) 3:暗号化添付メール
error_report_flg=1
......@@ -110,7 +110,7 @@ repository_fqdn=s.abook.bz
#0:認証なし, 1:ログインID、パスワード, 2:アカウント文字列、ログインID、パスワード, 3:サイトID、アカウント文字列、ログインID、パスワード4:サイトID、アカウント文字列
login_mode=1
#login_modeが0、1の場合のアカウントパス
account_path=qatest2c
account_path=agtcatalog
#GCM
push_message=1
......
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