diff --git a/app/src/main/java/com/keylesspalace/tusky/MainActivity.kt b/app/src/main/java/com/keylesspalace/tusky/MainActivity.kt
index 8958feb01..f097f0e6d 100644
--- a/app/src/main/java/com/keylesspalace/tusky/MainActivity.kt
+++ b/app/src/main/java/com/keylesspalace/tusky/MainActivity.kt
@@ -834,6 +834,9 @@ class MainActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidInje
header.clear()
header.profiles = profiles
header.setActiveProfile(accountManager.activeAccount!!.id)
+ binding.mainToolbar.subtitle = if (accountManager.accounts.size > 1) {
+ accountManager.activeAccount!!.fullName
+ } else null
}
override fun getActionButton() = binding.composeButton
diff --git a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt
index c2e3eba32..6a1949683 100644
--- a/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt
+++ b/app/src/main/java/com/keylesspalace/tusky/components/compose/ComposeActivity.kt
@@ -236,6 +236,17 @@ class ComposeActivity :
val composeOptions: ComposeOptions? = intent.getParcelableExtra(COMPOSE_OPTIONS_EXTRA)
viewModel.setup(composeOptions)
+
+ if (accountManager.accounts.size > 1) {
+ binding.composeUsernameView.text = getString(
+ R.string.compose_active_account_description,
+ activeAccount.fullName
+ )
+ binding.composeUsernameView.show()
+ } else {
+ binding.composeUsernameView.hide()
+ }
+
setupReplyViews(composeOptions?.replyingStatusAuthor, composeOptions?.replyingStatusContent)
val statusContent = composeOptions?.content
if (!statusContent.isNullOrEmpty()) {
diff --git a/app/src/main/res/layout/activity_compose.xml b/app/src/main/res/layout/activity_compose.xml
index b2d734ea1..902bae406 100644
--- a/app/src/main/res/layout/activity_compose.xml
+++ b/app/src/main/res/layout/activity_compose.xml
@@ -71,6 +71,19 @@
android:layout_height="wrap_content"
android:orientation="vertical">
+
+
Add account to the list
Remove account from the list
- Posting with account %1$s
+ Posting as %1$s
Failed to set caption