Remove state debugging messages

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland 2017-08-24 02:18:05 -05:00
parent dcc7ddcd3b
commit 3daddad573
3 changed files with 0 additions and 13 deletions

View File

@ -5,7 +5,6 @@ import android.app.FragmentManager;
import android.app.FragmentTransaction; import android.app.FragmentTransaction;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.util.Log;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
@ -103,9 +102,6 @@ public class ConfigActivity extends BaseConfigActivity {
* @param shouldBeEditing Whether or not the config should be in the editing state. * @param shouldBeEditing Whether or not the config should be in the editing state.
*/ */
private void moveToState(final Config config, final boolean shouldBeEditing) { 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. // Update the saved state.
setCurrentConfig(config); setCurrentConfig(config);
setIsEditing(shouldBeEditing); setIsEditing(shouldBeEditing);
@ -165,15 +161,12 @@ public class ConfigActivity extends BaseConfigActivity {
@Override @Override
protected void onCurrentConfigChanged(final Config config) { protected void onCurrentConfigChanged(final Config config) {
Log.d(getClass().getSimpleName(), "onCurrentConfigChanged: config=" +
(config != null ? config.getName() : null));
// Abandon editing a config when the current config changes. // Abandon editing a config when the current config changes.
moveToState(config, false); moveToState(config, false);
} }
@Override @Override
protected void onEditingStateChanged(final boolean isEditing) { protected void onEditingStateChanged(final boolean isEditing) {
Log.d(getClass().getSimpleName(), "onEditingStateChanged: isEditing=" + isEditing);
moveToState(getCurrentConfig(), isEditing); moveToState(getCurrentConfig(), isEditing);
} }

View File

@ -1,7 +1,6 @@
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;
@ -39,8 +38,6 @@ public class ConfigDetailFragment extends BaseConfigFragment {
@Override @Override
protected void onCurrentConfigChanged(final Config config) { protected void onCurrentConfigChanged(final Config config) {
Log.d(getClass().getSimpleName(), "onCurrentConfigChanged config=" +
(config != null ? config.getName() : null));
if (binding != null) if (binding != null)
binding.setConfig(config); binding.setConfig(config);
} }

View File

@ -2,7 +2,6 @@ package com.wireguard.android;
import android.content.res.Resources; import android.content.res.Resources;
import android.os.Bundle; import android.os.Bundle;
import android.util.Log;
import android.view.ActionMode; import android.view.ActionMode;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.Menu; import android.view.Menu;
@ -71,8 +70,6 @@ public class ConfigListFragment extends BaseConfigFragment {
@Override @Override
protected void onCurrentConfigChanged(final Config config) { protected void onCurrentConfigChanged(final Config config) {
Log.d(getClass().getSimpleName(), "onCurrentConfigChanged config=" +
(config != null ? config.getName() : null));
final BaseConfigActivity activity = ((BaseConfigActivity) getActivity()); final BaseConfigActivity activity = ((BaseConfigActivity) getActivity());
if (activity != null) if (activity != null)
activity.setCurrentConfig(config); activity.setCurrentConfig(config);