mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
cleanup: not a new feature any more
This commit is contained in:
parent
4ed46f6681
commit
a8abdaad8c
3 changed files with 8 additions and 9 deletions
|
@ -140,7 +140,7 @@ public class DictBrowseDelegate extends DelegateBase
|
||||||
private PatTableRow m_rows[] = { null, null, null };
|
private PatTableRow m_rows[] = { null, null, null };
|
||||||
private Spinner m_spinnerMin;
|
private Spinner m_spinnerMin;
|
||||||
private Spinner m_spinnerMax;
|
private Spinner m_spinnerMax;
|
||||||
private boolean m_newAlertShown;
|
private boolean m_filterAlertShown;
|
||||||
private String m_desc;
|
private String m_desc;
|
||||||
private Runnable mResetChecker;
|
private Runnable mResetChecker;
|
||||||
|
|
||||||
|
@ -779,12 +779,11 @@ public class DictBrowseDelegate extends DelegateBase
|
||||||
|
|
||||||
private void newFeatureAlert()
|
private void newFeatureAlert()
|
||||||
{
|
{
|
||||||
if ( ! m_newAlertShown ) {
|
if ( ! m_filterAlertShown ) {
|
||||||
m_newAlertShown = true;
|
m_filterAlertShown = true;
|
||||||
makeNotAgainBuilder( R.string.new_feature_filter, R.string.key_na_newFeatureFilter )
|
makeNotAgainBuilder( R.string.new_feature_filter, R.string.key_na_newFeatureFilter )
|
||||||
.setActionPair( Action.SHOW_FAQ, R.string.button_faq )
|
.setActionPair( Action.SHOW_FAQ, R.string.button_faq )
|
||||||
.setParams( (Object)FAQ_PARAMS )
|
.setParams( (Object)FAQ_PARAMS )
|
||||||
.setTitle(R.string.new_feature_title)
|
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class CommonPrefs extends XWPrefs {
|
||||||
tvType = TileValueType.values()[ord];
|
tvType = TileValueType.values()[ord];
|
||||||
|
|
||||||
Resources res = context.getResources();
|
Resources res = context.getResources();
|
||||||
int strsID = R.array.color_ids_light;
|
ColorTheme theme = ColorTheme.LIGHT;
|
||||||
String which = LocUtils.getString( context, R.string.key_theme_which );
|
String which = LocUtils.getString( context, R.string.key_theme_which );
|
||||||
which = sp.getString( which, null );
|
which = sp.getString( which, null );
|
||||||
if ( null != which ) {
|
if ( null != which ) {
|
||||||
|
@ -116,13 +116,13 @@ public class CommonPrefs extends XWPrefs {
|
||||||
// do nothing
|
// do nothing
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
strsID = R.array.color_ids_dark;
|
theme = ColorTheme.DARK;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
int uiMode = res.getConfiguration().uiMode;
|
int uiMode = res.getConfiguration().uiMode;
|
||||||
if ( Configuration.UI_MODE_NIGHT_YES
|
if ( Configuration.UI_MODE_NIGHT_YES
|
||||||
== (uiMode & Configuration.UI_MODE_NIGHT_MASK) ) {
|
== (uiMode & Configuration.UI_MODE_NIGHT_MASK) ) {
|
||||||
strsID = R.array.color_ids_dark;
|
theme = ColorTheme.DARK;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -133,7 +133,7 @@ public class CommonPrefs extends XWPrefs {
|
||||||
Log.ex( TAG, ex );
|
Log.ex( TAG, ex );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String[] colorStrIds = res.getStringArray( strsID );
|
String[] colorStrIds = res.getStringArray( theme.getArrayID() );
|
||||||
|
|
||||||
int offset = copyColors( sp, colorStrIds, 0, playerColors, 0 );
|
int offset = copyColors( sp, colorStrIds, 0, playerColors, 0 );
|
||||||
offset += copyColors( sp, colorStrIds, offset, bonusColors, 1 );
|
offset += copyColors( sp, colorStrIds, offset, bonusColors, 1 );
|
||||||
|
|
|
@ -1656,7 +1656,7 @@
|
||||||
<string name="filter_progress_fmt">Processing %1$d words</string>
|
<string name="filter_progress_fmt">Processing %1$d words</string>
|
||||||
<!-- Text of alert shown when user first opens wordlist
|
<!-- Text of alert shown when user first opens wordlist
|
||||||
browser. Shown until not-again checkbox checked. -->
|
browser. Shown until not-again checkbox checked. -->
|
||||||
<string name="new_feature_filter">You can now filter wordlists by
|
<string name="new_feature_filter">You can filter wordlists by
|
||||||
what words start with, end with, and/or contain. Access filtering
|
what words start with, end with, and/or contain. Access filtering
|
||||||
by tapping the Expander Arrow at the upper-right corner of the
|
by tapping the Expander Arrow at the upper-right corner of the
|
||||||
window.\n\nRead more in the FAQ by tapping the button
|
window.\n\nRead more in the FAQ by tapping the button
|
||||||
|
|
Loading…
Reference in a new issue