summaryrefslogtreecommitdiffhomepage
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/com/wireguard/android/ConfigActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/ConfigActivity.java b/app/src/main/java/com/wireguard/android/ConfigActivity.java
index b3cde478..baa29766 100644
--- a/app/src/main/java/com/wireguard/android/ConfigActivity.java
+++ b/app/src/main/java/com/wireguard/android/ConfigActivity.java
@@ -73,6 +73,10 @@ public class ConfigActivity extends BaseConfigActivity {
// listFragment is guaranteed not to be null at this point by onServiceAvailable().
if (listFragment.getCurrentConfig() != config)
listFragment.setCurrentConfig(config);
+ // Update the activity's title if the list of configurations is not visible.
+ if (!isSplitLayout)
+ setTitle(config != null ? config.getName() : getString(R.string.app_name));
+ // Update the fragment in the main container.
if (isEditing) {
fm.popBackStackImmediate();
isEditing = false;