Skip to content

Commit a1e5aed

Browse files
committed
small fixes for app title and strings
1 parent 47bf48b commit a1e5aed

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/src/main/java/com/macindex/macindex/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,9 @@ protected void onCreate(final Bundle savedInstanceState) {
134134
protected void onRestart() {
135135
super.onRestart();
136136
try {
137-
setTitle(getString(translateTitleRes()));
138-
139137
// If reload is needed..
140138
if (PrefsHelper.getBooleanPrefs("isReloadNeeded", this)) {
139+
setTitle(getString(translateTitleRes()));
141140
initInterface(true);
142141
PrefsHelper.editPrefs("isReloadNeeded", false, this);
143142
}
@@ -195,6 +194,7 @@ public boolean onOptionsItemSelected(final MenuItem item) {
195194
}
196195
break;
197196
case R.id.mainReloadItem:
197+
mDrawerLayout.closeDrawer(GravityCompat.START);
198198
closeDatabase();
199199
initDatabase(this);
200200
initInterface(true);

app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<string name="information_double_press">再按一次返回键来退出 MacIndex</string>
1212
<string name="information_set_everymac">默认从 EveryMac 打开已启用。MacIndex 将直接跳转到当前机型对应的 EveryMac 网页,而不打开参数页面。若想要关闭此功能,请进入设置页。</string>
1313
<string name="setting_sort">二次排序(全局分组和搜素)</string>
14-
<string name="setting_sort_description">重新按照时间排序来保证非同个分组的机型排序正确。关闭可使加载更快。只影响分组和搜素页。</string>
14+
<string name="setting_sort_description">重新按照时间排序来保证非同个分组的机型排序正确。关闭可使加载更快。影响主页和搜素页。</string>
1515
<string name="setting_sort_comment">二次排序(自定义备注)</string>
16-
<string name="setting_sort_comment_description">按照时间排序或按照添加顺序排序。关闭可使加载更快。只影响自定义备注页。</string>
16+
<string name="setting_sort_comment_description">按照时间排序或按照添加顺序排序。关闭可使加载更快。影响机型收藏页和自定义备注页。</string>
1717
<string name="setting_everymac">默认从 EveryMac 打开</string>
1818
<string name="setting_everymac_description">直接跳转到当前机型对应的 EveryMac 网页,而不打开参数页面。若该机型有多种不同的配置,将特别询问。</string>
1919
<string name="setting_everymac_warning_content">这会对主页和搜索结果生效。同时,某些功能将不再可用。</string>

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<string name="information_double_press">Press the back button again to exit MacIndex</string>
1313
<string name="information_set_everymac">Open Directly in EveryMac is enabled. MacIndex will open the EveryMac Page of the machine directly instead of the Specification Page. If you want to disable this function, please access the Preferences Page.</string>
1414
<string name="setting_sort">Enhanced Sorting (Overall Categories/Search)</string>
15-
<string name="setting_sort_description">Sort by time again to ensure correct positions for machines not in the same category. Turn off can make the loading faster. This only affects Categories and Search Pages.</string>
15+
<string name="setting_sort_description">Sort by time again to ensure correct positions for machines not in the same category. Turn off can make the loading faster. This affects Main and Search Pages.</string>
1616
<string name="setting_sort_comment">Enhanced Sorting (Comments)</string>
17-
<string name="setting_sort_comment_description">Sort by time or sort by the order of addition. Turn off can make the loading faster. This only affects Comments Page.</string>
17+
<string name="setting_sort_comment_description">Sort by time or sort by the order of addition. Turn off can make the loading faster. This affects Favourites and Custom Comments Page.</string>
1818
<string name="setting_everymac">Open Directly in EveryMac</string>
1919
<string name="setting_everymac_description">Open the EveryMac Page of the machine directly instead of the Specification Page. Will ask for specific configuration if the machine has more than one configurations.</string>
2020
<string name="setting_everymac_warning_content">This is effective for both Main Page and Search Page. Some functions will no longer be available as well.</string>

0 commit comments

Comments
 (0)