Updated all logging to verbose and disabled it

This commit is contained in:
2014-09-02 20:15:02 -04:00
parent f077b45477
commit 6f42994da5
4 changed files with 18 additions and 21 deletions

View File

@@ -6,11 +6,6 @@
*/ */
package org.RickBarrette.android.LocationRinger.ui.fragments; package org.RickBarrette.android.LocationRinger.ui.fragments;
import java.util.ArrayList;
import java.util.Collections;
import org.RickBarrette.android.LocationRinger.Log;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.support.v4.app.Fragment; import android.support.v4.app.Fragment;
@@ -18,6 +13,10 @@ import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import org.RickBarrette.android.LocationRinger.Log;
import java.util.ArrayList;
import java.util.Collections;
/** /**
@@ -89,7 +88,7 @@ public abstract class BaseFragmentListFragment extends Fragment {
* Adds a collection ofs fragments to the list, but doesn't preform any * Adds a collection ofs fragments to the list, but doesn't preform any
* transactions * transactions
* *
* @param fragment * @param fragments
* @author ricky barrette * @author ricky barrette
*/ */
protected void addAllInit(final ArrayList<Fragment> fragments) { protected void addAllInit(final ArrayList<Fragment> fragments) {

View File

@@ -100,8 +100,8 @@ public class RingtoneFragment extends BaseFeatureFragment implements OnClickList
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, false); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, false);
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, uri); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, uri);
if (Constraints.DEBUG) if (Constraints.VERBOSE)
Log.d(TAG, TAG + ".getRingtoneURI " + this.getFragmentId()); Log.v(TAG, TAG + ".getRingtoneURI " + this.getFragmentId());
FragmentActivity activity = this.getActivity(); FragmentActivity activity = this.getActivity();
if ( activity instanceof RingerInformationActivity) if ( activity instanceof RingerInformationActivity)
@@ -179,8 +179,9 @@ public class RingtoneFragment extends BaseFeatureFragment implements OnClickList
final View view = super.onCreateView(inflater, container, savedInstanceState); final View view = super.onCreateView(inflater, container, savedInstanceState);
final AudioManager audioManager = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); final AudioManager audioManager = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);
for (final Entry<String, Object> item : mInfo.valueSet()) if(Constraints.VERBOSE)
Log.d(TAG, item.getKey() + " = " + item.getValue()); for (final Entry<String, Object> item : mInfo.valueSet())
Log.v(TAG, item.getKey() + " = " + item.getValue());
/* /*
* initialize the views * initialize the views

View File

@@ -6,14 +6,6 @@
*/ */
package org.RickBarrette.android.LocationRinger.ui.fragments; package org.RickBarrette.android.LocationRinger.ui.fragments;
import java.util.Map.Entry;
import org.RickBarrette.android.LocationRinger.FeatureRemovedListener;
import org.RickBarrette.android.LocationRinger.Log;
import org.RickBarrette.android.LocationRinger.OnContentChangedListener;
import org.RickBarrette.android.LocationRinger.R;
import org.RickBarrette.android.LocationRinger.db.RingerDatabase;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.content.ContentValues; import android.content.ContentValues;
import android.content.Context; import android.content.Context;
@@ -25,6 +17,10 @@ import android.view.ViewGroup;
import android.widget.SeekBar; import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener; import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView; import android.widget.TextView;
import org.RickBarrette.android.LocationRinger.*;
import org.RickBarrette.android.LocationRinger.db.RingerDatabase;
import java.util.Map.Entry;
/** /**
* This fragment will represent the volume fragments * This fragment will represent the volume fragments
@@ -126,8 +122,9 @@ public class VolumeFragment extends BaseFeatureFragment implements OnSeekBarChan
@Override @Override
public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) { public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
for (final Entry<String, Object> item : mInfo.valueSet()) if(Constraints.VERBOSE)
Log.d(TAG, item.getKey() + " = " + item.getValue()); for (final Entry<String, Object> item : mInfo.valueSet())
Log.v(TAG, item.getKey() + " = " + item.getValue());
final View view = super.onCreateView(inflater, container, savedInstanceState); final View view = super.onCreateView(inflater, container, savedInstanceState);
final TextView label = (TextView) view.findViewById(R.id.title); final TextView label = (TextView) view.findViewById(R.id.title);