warning stuff

This commit is contained in:
unknown 2014-02-15 16:56:45 +01:00
parent 0dc200f983
commit 873a4046b8
29 changed files with 21 additions and 166 deletions

View file

@ -7,17 +7,11 @@ import java.util.Set;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
import android.speech.tts.TextToSpeech.OnInitListener;
import android.view.Display;
import android.view.WindowManager;
import android.widget.EditText;
import btools.router.OsmNodeNamed;
@ -36,8 +30,6 @@ public class BRouterActivity extends Activity implements OnInitListener {
private BRouterView mBRouterView;
private PowerManager mPowerManager;
private WindowManager mWindowManager;
private Display mDisplay;
private WakeLock mWakeLock;
/** Called when the activity is first created. */
@ -49,10 +41,6 @@ public class BRouterActivity extends Activity implements OnInitListener {
// Get an instance of the PowerManager
mPowerManager = (PowerManager) getSystemService(POWER_SERVICE);
// Get an instance of the WindowManager
mWindowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
mDisplay = mWindowManager.getDefaultDisplay();
// Create a bright wake lock
mWakeLock = mPowerManager.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, getClass()
.getName());
@ -234,7 +222,6 @@ public class BRouterActivity extends Activity implements OnInitListener {
private String selectedProfile = null;
private String[] availableWaypoints;
private String selectedWaypoint = null;
private String[] routingModes;
private boolean[] routingModesChecked;
@ -306,11 +293,11 @@ public class BRouterActivity extends Activity implements OnInitListener {
private void showNewDialog( int id )
{
if ( dialogIds.contains( new Integer( id ) ) )
if ( dialogIds.contains( Integer.valueOf( id ) ) )
{
removeDialog( id );
}
dialogIds.add( new Integer( id ) );
dialogIds.add( Integer.valueOf( id ) );
showDialog( id );
}

View file

@ -6,8 +6,6 @@ import java.io.FileReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.StringTokenizer;
import android.app.Service;
import android.content.Intent;

View file

@ -4,7 +4,6 @@ import java.io.File;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import btools.router.OsmNodeNamed;
/**