some code reformatting
This commit is contained in:
parent
3f15535f48
commit
d9d335b22e
@ -76,7 +76,7 @@ public class IITC_MapSettings implements OnItemSelectedListener, OnItemClickList
|
|||||||
@Override
|
@Override
|
||||||
public View getView(int position, View convertView, ViewGroup parent) {
|
public View getView(int position, View convertView, ViewGroup parent) {
|
||||||
Layer item = getItem(position);
|
Layer item = getItem(position);
|
||||||
View view = (TextView) super.getView(position, convertView, parent);
|
View view = super.getView(position, convertView, parent);
|
||||||
|
|
||||||
if (view instanceof CheckedTextView) {
|
if (view instanceof CheckedTextView) {
|
||||||
((CheckedTextView) view).setChecked(item.active);
|
((CheckedTextView) view).setChecked(item.active);
|
||||||
|
@ -4,7 +4,6 @@ import android.app.ActionBar;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.app.DownloadManager;
|
import android.app.DownloadManager;
|
||||||
import android.app.ProgressDialog;
|
|
||||||
import android.app.SearchManager;
|
import android.app.SearchManager;
|
||||||
import android.content.BroadcastReceiver;
|
import android.content.BroadcastReceiver;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -19,7 +18,6 @@ import android.location.LocationListener;
|
|||||||
import android.location.LocationManager;
|
import android.location.LocationManager;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Environment;
|
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
@ -59,7 +57,7 @@ public class IITC_Mobile extends Activity implements OnSharedPreferenceChangeLis
|
|||||||
private IITC_NavigationHelper mNavigationHelper;
|
private IITC_NavigationHelper mNavigationHelper;
|
||||||
private IITC_MapSettings mMapSettings;
|
private IITC_MapSettings mMapSettings;
|
||||||
|
|
||||||
private BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {
|
private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
((IITC_Mobile) context).installIitcUpdate();
|
((IITC_Mobile) context).installIitcUpdate();
|
||||||
|
@ -164,7 +164,6 @@ public class IITC_WebView extends WebView {
|
|||||||
@Override
|
@Override
|
||||||
public void onReceiveValue(String value) {
|
public void onReceiveValue(String value) {
|
||||||
// maybe we want to add stuff here
|
// maybe we want to add stuff here
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -26,7 +26,6 @@ import java.io.FileNotFoundException;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
@ -163,7 +162,7 @@ public class IITC_WebViewClient extends WebViewClient {
|
|||||||
"window.showLayerChooser = false");
|
"window.showLayerChooser = false");
|
||||||
}
|
}
|
||||||
|
|
||||||
String gmInfo = "GM_info=" + getGmInfoJson(getScriptInfo(js)).toString() + "\n";
|
String gmInfo = "GM_info=" + getGmInfoJson(getScriptInfo(js)) + "\n";
|
||||||
this.mIitcScript = gmInfo + js;
|
this.mIitcScript = gmInfo + js;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,7 @@ public class IntentListView extends ListView {
|
|||||||
ActivityInfo activity = info.activityInfo;
|
ActivityInfo activity = info.activityInfo;
|
||||||
|
|
||||||
// fix bug in PackageManager - a replaced package name might cause non-exported intents to appear
|
// fix bug in PackageManager - a replaced package name might cause non-exported intents to appear
|
||||||
if (activity.exported == false && !activity.packageName.equals(packageName)) {
|
if (!activity.exported && !activity.packageName.equals(packageName)) {
|
||||||
activityList.remove(i);
|
activityList.remove(i);
|
||||||
i--;
|
i--;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user