getMenuInflater().inflate(R.menu.account_summary, menu);
optMenu = menu;
- mShowHiddenAccounts = menu.findItem(R.id.menu_acc_summary_show_hidden);
+ mShowHiddenAccounts = menu.findItem(R.id.menu_acc_summary_only_starred);
if (mShowHiddenAccounts == null) throw new AssertionError();
sBindPreferenceSummaryToValueListener = (preference, value) -> mShowHiddenAccounts
}
public
- void onShowHiddenAccountsClicked(MenuItem mi) {
+ void onShowOnlyStarredClicked(MenuItem mi) {
SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
boolean flag = pref.getBoolean("show_hidden_accounts", false);
xmlns:android="http://schemas.android.com/apk/res/android">
<item
- android:id="@+id/menu_acc_summary_show_hidden"
+ android:id="@+id/menu_acc_summary_only_starred"
android:checkable="true"
android:checked="false"
- android:title="@string/menu_acc_summary_show_hidden_accounts_title"
+ android:title="@string/menu_acc_summary_show_only_starred_title"
app:actionLayout="@layout/switch_item"
- android:onClick="onShowHiddenAccountsClicked"
+ android:onClick="onShowOnlyStarredClicked"
app:showAsAction="never" />
<item android:id="@+id/menu_acc_summary_hide_selected"
android:icon="@drawable/ic_star_white_24dp"
<string name="menu_hide_acc_title">Скриване на сметката</string>
<string name="menu_acc_summary_refresh_title">Обновяване</string>
<string name="err_net_error">Мрежова грешка</string>
- <string name="menu_acc_summary_show_hidden_accounts_title">Показване на скритите сметки</string>
+ <string name="menu_acc_summary_show_only_starred_title">Показване само на любимите</string>
<string name="action_reset_new_transaction_activity_title">Отначало</string>
<string name="ime_action_next_title">Следващ</string>
+ <string name="interface_pref_header_title">Интерфейс</string>
+ <string name="pref_show_only_starred_off_summary">Списъкът на сметките съдържа всички сметки</string>
+ <string name="pref_show_only_starred_on_summary">Показват се само отбелязаните със звезда</string>
+ <string name="menu_acc_summary_cancel_selection_title">Отказ</string>
+ <string name="err_bad_auth">Грешно потребителско име или парола</string>
+ <string name="new_transaction_amount_hint">0,00</string>
</resources>
\ No newline at end of file
<string name="title_activity_new_transaction">New Transaction</string>
<string name="new_transaction_account_hint">Account</string>
<string name="new_transaction_date_hint">today</string>
- <string name="new_transaction_amount_hint" translatable="false">0.00</string>
+ <string name="new_transaction_amount_hint">0.00</string>
<string name="menu_add_account">Add another acount</string>
<string name="msg_at_least_two_accounts_are_required">At least two accounts are required</string>
<string name="err_bad_backend_url">Invalid backend URL</string>
<string name="menu_acc_summary_refresh_title">Refresh</string>
<string name="menu_hide_acc_title">Hide account</string>
<string name="menu_hide_acc_condensed_title">Hide</string>
- <string name="menu_acc_summary_show_hidden_accounts_title">Show hidden accounts</string>
+ <string name="menu_acc_summary_show_only_starred_title">Show only starred</string>
<string name="err_bad_auth">Invalid username or password</string>
<string name="action_reset_new_transaction_activity_title">Reset</string>
<string name="ime_action_next_title">Next</string>
<string name="interface_pref_header_title">Interface</string>
- <string name="pref_show_hidden_accounts_off_summary">Hidden accounts are not visible in the account list</string>
- <string name="pref_show_hidden_accounts_on_summary">Hidden accounts are shown in the account list</string>
+ <string name="pref_show_only_starred_off_summary">Account list contains all accounts</string>
+ <string name="pref_show_only_starred_on_summary">Only starred accounts are shown</string>
<string name="menu_acc_summary_hide_selected_title">Hide selected accounts</string>
<string name="menu_acc_summary_cancel_selection_title">Cancel selection</string>
</resources>
android:id="@+id/pref_show_hidden_accounts"
android:defaultValue="false"
android:key="show_hidden_accounts"
- android:summaryOff="@string/pref_show_hidden_accounts_off_summary"
- android:summaryOn="@string/pref_show_hidden_accounts_on_summary"
- android:title="@string/menu_acc_summary_show_hidden_accounts_title" />
+ android:summaryOff="@string/pref_show_only_starred_off_summary"
+ android:summaryOn="@string/pref_show_only_starred_on_summary"
+ android:title="@string/menu_acc_summary_show_only_starred_title" />
</PreferenceScreen>
\ No newline at end of file