summaryrefslogtreecommitdiffhomepage
path: root/app/src
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-23 23:51:08 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-23 23:51:08 -0500
commit632f3f73a2133221242668051465b55fcc3e1f55 (patch)
tree2c4c6ac2fc2bea541887de1f9423c81f9a6f5bc5 /app/src
parentb2357e58e3dcbba77797cc07dd3dec2349ccff1d (diff)
ConfigActivity: Log state transitions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/wireguard/android/ConfigActivity.java3
1 files changed, 3 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 627dc646..9743720b 100644
--- a/app/src/main/java/com/wireguard/android/ConfigActivity.java
+++ b/app/src/main/java/com/wireguard/android/ConfigActivity.java
@@ -95,6 +95,9 @@ public class ConfigActivity extends BaseConfigActivity {
* @param shouldBeEditing Whether or not the config should be in the editing state.
*/
private void moveToState(final Config config, final boolean shouldBeEditing) {
+ Log.d(getClass().getSimpleName(), "moveToState: config=" +
+ (config != null ? config.getName() : null) + " shouldBeEditing=" + shouldBeEditing);
+
// Update the saved state.
setCurrentConfig(config);
setIsEditing(shouldBeEditing);