From 2103a28f8f1c72d2829e935089fdda3950abd346 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 15 Aug 2017 17:07:17 -0500 Subject: ConfigActivity: Show the current config in the title Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/android/ConfigActivity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main/java/com/wireguard') 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; -- cgit v1.2.3