From 7f9646b0d028b20de43f77802f5d7cf7f2373a66 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 13 Jan 2019 18:20:13 +0000 Subject: [PATCH] show profile name in the new transaction activity --- .../ktnx/mobileledger/ui/activity/NewTransactionActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java index 13fc0620..5b28e4b0 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java @@ -46,6 +46,7 @@ import android.widget.Toast; import net.ktnx.mobileledger.R; import net.ktnx.mobileledger.async.SaveTransactionTask; import net.ktnx.mobileledger.async.TaskCallback; +import net.ktnx.mobileledger.model.Data; import net.ktnx.mobileledger.model.LedgerTransaction; import net.ktnx.mobileledger.model.LedgerTransactionAccount; import net.ktnx.mobileledger.ui.DatePickerFragment; @@ -84,6 +85,7 @@ public class NewTransactionActivity extends AppCompatActivity implements TaskCal setContentView(R.layout.activity_new_transaction); Toolbar toolbar = findViewById(R.id.toolbar); setSupportActionBar(toolbar); + toolbar.setSubtitle(Data.profile.get().getName()); tvDate = findViewById(R.id.new_transaction_date); tvDate.setOnFocusChangeListener((v, hasFocus) -> { -- 2.39.5