From: Damyan Ivanov Date: Sun, 13 Jan 2019 18:20:13 +0000 (+0000) Subject: show profile name in the new transaction activity X-Git-Tag: v0.3~38 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=7f9646b0d028b20de43f77802f5d7cf7f2373a66;p=mobile-ledger.git show profile name in the new transaction activity --- 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) -> {