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.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
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.
*/
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);
@ -165,15 +161,12 @@ public class ConfigActivity extends BaseConfigActivity {
@Override
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.
moveToState(config, false);
}
@Override
protected void onEditingStateChanged(final boolean isEditing) {
Log.d(getClass().getSimpleName(), "onEditingStateChanged: isEditing=" + isEditing);
moveToState(getCurrentConfig(), isEditing);
}

View File

@ -1,7 +1,6 @@
package com.wireguard.android;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
@ -39,8 +38,6 @@ public class ConfigDetailFragment extends BaseConfigFragment {
@Override
protected void onCurrentConfigChanged(final Config config) {
Log.d(getClass().getSimpleName(), "onCurrentConfigChanged config=" +
(config != null ? config.getName() : null));
if (binding != null)
binding.setConfig(config);
}

View File

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