Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #17 from flederbaysian/logspam
Browse files Browse the repository at this point in the history
Remove logs from CellularDrawer.
  • Loading branch information
hapticdata committed Nov 13, 2015
2 parents 28161fe + 2178798 commit 70b87cc
Showing 1 changed file with 10 additions and 4 deletions.
Expand Up @@ -27,7 +27,7 @@
*/
public class CellularDrawer extends TriangleFillDrawer {
private final String TAG = this.getClass().getSimpleName();

private static final boolean DEBUG = false;

private boolean firstRead = true;

Expand Down Expand Up @@ -56,7 +56,9 @@ public CellularDrawer(final Context context){
@Override
public void onSignalStrengthsChanged(SignalStrength signalStrength) {
super.onSignalStrengthsChanged(signalStrength);
Log.d(TAG, "SIGNAL "+String.valueOf(signalStrength));
if (DEBUG) {
Log.d(TAG, "SIGNAL "+String.valueOf(signalStrength));
}

int level = 0;
String tech = "";
Expand Down Expand Up @@ -117,14 +119,18 @@ public void onSignalStrengthsChanged(SignalStrength signalStrength) {
_percent = (float) (percent-0.001);
}

Log.d(TAG, tech+" "+String.valueOf(level));
if (DEBUG) {
Log.d(TAG, tech+" "+String.valueOf(level));
}
}

@Override
public void onServiceStateChanged(ServiceState serviceState) {
super.onServiceStateChanged(serviceState);
setLabel2();
Log.d(TAG,"STATE "+String.valueOf(serviceState)+" "+serviceState.getState());
if (DEBUG) {
Log.d(TAG,"STATE "+String.valueOf(serviceState)+" "+serviceState.getState());
}
}
},PhoneStateListener.LISTEN_SIGNAL_STRENGTHS | PhoneStateListener.LISTEN_SERVICE_STATE);

Expand Down

0 comments on commit 70b87cc

Please sign in to comment.