ConfigDetailFragment: Move function to be in alphabetical order
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
ebb0091ad4
commit
c3203ce90a
@ -1,6 +1,7 @@
|
|||||||
package com.wireguard.android;
|
package com.wireguard.android;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuInflater;
|
import android.view.MenuInflater;
|
||||||
@ -17,12 +18,6 @@ import com.wireguard.config.Config;
|
|||||||
public class ConfigDetailFragment extends BaseConfigFragment {
|
public class ConfigDetailFragment extends BaseConfigFragment {
|
||||||
private ConfigDetailFragmentBinding binding;
|
private ConfigDetailFragmentBinding binding;
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void onCurrentConfigChanged(final Config config) {
|
|
||||||
if (binding != null)
|
|
||||||
binding.setConfig(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(final Bundle savedInstanceState) {
|
public void onCreate(final Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
@ -41,4 +36,12 @@ public class ConfigDetailFragment extends BaseConfigFragment {
|
|||||||
binding.setConfig(getCurrentConfig());
|
binding.setConfig(getCurrentConfig());
|
||||||
return binding.getRoot();
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user