mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-29 10:26:36 +01:00
always show toast announcing dual-pane mode
on startup, even for non-debug builds. And move the string into a resource for localization.
This commit is contained in:
parent
ba968b1e36
commit
6cc67b2347
5 changed files with 6 additions and 2 deletions
|
@ -2010,6 +2010,7 @@ XLATE-ME
|
|||
/** <string name="data_gsm_only">SMS Data is only available on GSM phones.</string>
|
||||
*/
|
||||
public static final int data_gsm_only=0x7f05029b;
|
||||
public static final int db_enabled_toast=0x7f050351;
|
||||
/** <string name="db_store_done">SD card write complete.</string>
|
||||
*/
|
||||
public static final int db_store_done=0x7f05032d;
|
||||
|
|
|
@ -2694,4 +2694,5 @@
|
|||
<string name="dualpane_restart">Exiting app…</string>
|
||||
<string name="after_restart">This change will not take effect until
|
||||
you restart Crosswords.</string>
|
||||
<string name="db_enabled_toast">Side-by-side mode ENABLED</string>
|
||||
</resources>
|
||||
|
|
|
@ -2302,4 +2302,5 @@
|
|||
<string name="dualpane_restart">Gnitixe ppa…</string>
|
||||
<string name="after_restart">Siht egnahc lliw ton ekat tceffe litnu
|
||||
uoy tratser Sdrowssorc.</string>
|
||||
<string name="db_enabled_toast">Edis-yb-edis edom DELBANE</string>
|
||||
</resources>
|
||||
|
|
|
@ -2302,4 +2302,5 @@
|
|||
<string name="dualpane_restart">EXITING APP…</string>
|
||||
<string name="after_restart">THIS CHANGE WILL NOT TAKE EFFECT UNTIL
|
||||
YOU RESTART CROSSWORDS.</string>
|
||||
<string name="db_enabled_toast">SIDE-BY-SIDE MODE ENABLED</string>
|
||||
</resources>
|
||||
|
|
|
@ -62,8 +62,8 @@ public class MainActivity extends XWActivity
|
|||
protected void onCreate( Bundle savedInstanceState )
|
||||
{
|
||||
m_dpEnabled = XWPrefs.dualpaneEnabled( this );
|
||||
if ( BuildConfig.DEBUG && m_dpEnabled ) {
|
||||
Utils.showToast( this, "Side-by-side mode ENABLED" );
|
||||
if ( m_dpEnabled ) {
|
||||
Utils.showToast( this, R.string.db_enabled_toast );
|
||||
}
|
||||
|
||||
m_dlgt = m_dpEnabled ? new DualpaneDelegate( this, savedInstanceState )
|
||||
|
|
Loading…
Reference in a new issue