]> git.ktnx.net Git - mobile-ledger.git/commitdiff
extract a string into resource
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 21 Dec 2018 20:20:51 +0000 (20:20 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 21 Dec 2018 20:20:51 +0000 (20:20 +0000)
app/src/main/java/net/ktnx/mobileledger/TransactionListActivity.java
app/src/main/res/values/strings.xml

index b1dd3756f1a4c79a2063656ab38c1fdf1f3975e9..77d2d671bd9c1a8dd9bb390eee4c0dc1f25b8076 100644 (file)
@@ -149,7 +149,7 @@ public class TransactionListActivity extends AppCompatActivity {
         {
             long last_update = MLDB.get_option_value(this, MLDB.OPT_TRANSACTION_LIST_STAMP, 0L);
             Log.d("transactions", String.format("Last update = %d", last_update));
-            if (last_update == 0) tvLastUpdate.setText("never");
+            if (last_update == 0) tvLastUpdate.setText(getString(R.string.transaction_last_update_never));
             else {
                 Date date = new Date(last_update);
                 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
index da63a4cb6c1227b8ec99625fa70331797c239a02..9c0369c51aff72ee0a8edc7573450df8d89c58aa 100644 (file)
     <string name="menu_acc_summary_confirm_selection_title">Confirm selectin</string>
     <string name="title_activity_transaction_list">Transactions</string>
     <string name="transactions_last_update_label">Last update:</string>
+    <string name="transaction_last_update_never">never</string>
 </resources>