]> git.ktnx.net Git - mobile-ledger.git/commitdiff
show profile name in the new transaction activity
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 13 Jan 2019 18:20:13 +0000 (18:20 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 13 Jan 2019 18:20:13 +0000 (18:20 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionActivity.java

index 13fc0620fdf3d936b5693f85d7b0477f5f9d617b..5b28e4b0ac30ce35586c8d5cedbe27721dbcbf60 100644 (file)
@@ -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) -> {