diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java index 71f60acf4..b90febc40 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java @@ -214,7 +214,11 @@ public class BoardDelegate extends DelegateBase lstnr = new OnClickListener() { public void onClick( DialogInterface dlg, int whichButton ) { - archiveAndClose( archiveName, archiveGroup ); + makeNotAgainBuilder( R.string.not_again_archive, + R.string.key_na_archive, + Action.ARCHIVE_ACTION ) + .setParams( archiveName, archiveGroup ) + .show(); } }; ab.setNeutralButton( R.string.button_archive, lstnr ); @@ -1107,6 +1111,12 @@ public class BoardDelegate extends DelegateBase makeOkOnlyBuilder( R.string.after_restart ).show(); break; + case ARCHIVE_ACTION: + String archiveName = (String)params[0]; + long archiveGroup = (Long)params[1]; + archiveAndClose( archiveName, archiveGroup ); + break; + case ENABLE_SMS_DO: post( new Runnable() { public void run() { diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java index 265e4b7d6..8b13e3b91 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/DlgDelegate.java @@ -84,6 +84,7 @@ public class DlgDelegate { TRAY_PICKED, INVITE_INFO, DISABLE_DUALPANE, + ARCHIVE_ACTION, // Dict Browser FINISH_ACTION, diff --git a/xwords4/android/app/src/main/res/values/common_rsrc.xml b/xwords4/android/app/src/main/res/values/common_rsrc.xml index 2ef326001..d029cb00f 100644 --- a/xwords4/android/app/src/main/res/values/common_rsrc.xml +++ b/xwords4/android/app/src/main/res/values/common_rsrc.xml @@ -111,6 +111,7 @@ key_notagain_trading key_notagain_hidenewgamebuttons key_na_lookup + key_na_archive key_na_browse key_na_browseall key_na_values diff --git a/xwords4/android/app/src/main/res/values/strings.xml b/xwords4/android/app/src/main/res/values/strings.xml index 4a5a7eb29..713fd3211 100644 --- a/xwords4/android/app/src/main/res/values/strings.xml +++ b/xwords4/android/app/src/main/res/values/strings.xml @@ -1743,6 +1743,14 @@ This button lets you look up, online, the words just played. + Archiving uses a special group + called \"Archive\" to store finished games you want to keep. And, + since deleting an entire archive is easy, archiving is also a + great way to mark games for deletion – if that\'s what you prefer + to do.\n\n(Deleting the Archive group is safe because it will be + created anew when needed.) + + Move New group