diff options
author | Samuel Holland <samuel@sholland.org> | 2017-08-16 00:47:58 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-08-16 00:47:58 -0500 |
commit | c3203ce90aa021955589165fc387c415442ff5ef (patch) | |
tree | 7013c42190442331e69b3b8e90ce19734bfe35c0 /app/src/main | |
parent | ebb0091ad4f629dadb79e53926604931bf398c01 (diff) |
ConfigDetailFragment: Move function to be in alphabetical order
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/wireguard/android/ConfigDetailFragment.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/app/src/main/java/com/wireguard/android/ConfigDetailFragment.java b/app/src/main/java/com/wireguard/android/ConfigDetailFragment.java index f7f6e6e2..5a59376f 100644 --- a/app/src/main/java/com/wireguard/android/ConfigDetailFragment.java +++ b/app/src/main/java/com/wireguard/android/ConfigDetailFragment.java @@ -1,6 +1,7 @@ package com.wireguard.android; import android.os.Bundle; +import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; @@ -18,12 +19,6 @@ public class ConfigDetailFragment extends BaseConfigFragment { private ConfigDetailFragmentBinding binding; @Override - protected void onCurrentConfigChanged(final Config config) { - if (binding != null) - binding.setConfig(config); - } - - @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); @@ -41,4 +36,12 @@ public class ConfigDetailFragment extends BaseConfigFragment { binding.setConfig(getCurrentConfig()); return binding.getRoot(); } + + @Override + protected void onCurrentConfigChanged(final Config config) { + Log.d(getClass().getSimpleName(), "onCurrentConfigChanged config=" + + (config != null ? config.getName() : null)); + if (binding != null) + binding.setConfig(config); + } } |