I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 3644d738 authored by str4d's avatar str4d
Browse files

Cleanups

parent c044c4de
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,6 @@ public class NewsFetcher implements Runnable, EepGet.StatusListener { ...@@ -97,7 +97,6 @@ public class NewsFetcher implements Runnable, EepGet.StatusListener {
private static final long INITIAL_DELAY = 5*60*1000; private static final long INITIAL_DELAY = 5*60*1000;
private static final long RUN_DELAY = 30*60*1000; private static final long RUN_DELAY = 30*60*1000;
@SuppressWarnings("SleepWhileInLoop")
public void run() { public void run() {
try { try {
Thread.sleep(INITIAL_DELAY); Thread.sleep(INITIAL_DELAY);
......
...@@ -65,7 +65,6 @@ public class AddressbookSettingsActivity extends Activity { ...@@ -65,7 +65,6 @@ public class AddressbookSettingsActivity extends Activity {
return false; return false;
} }
@SuppressWarnings("CallToThreadDumpStack")
private boolean save() { private boolean save() {
// //
String content = text_content_subscriptions.getText().toString(); String content = text_content_subscriptions.getText().toString();
......
...@@ -94,8 +94,6 @@ public class LogFragment extends ListFragment { ...@@ -94,8 +94,6 @@ public class LogFragment extends ListFragment {
} }
private class Updater implements Runnable { private class Updater implements Runnable {
private int counter;
public void run() { public void run() {
I2PAppContext ctx = I2PAppContext.getCurrentContext(); I2PAppContext ctx = I2PAppContext.getCurrentContext();
if (ctx != null) { if (ctx != null) {
......
...@@ -97,7 +97,6 @@ public class PeersFragment extends I2PFragmentBase { ...@@ -97,7 +97,6 @@ public class PeersFragment extends I2PFragmentBase {
@Override @Override
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {
WebView wv = (WebView) getActivity().findViewById(R.id.peers_webview);
switch (item.getItemId()) { switch (item.getItemId()) {
case R.id.menu_reload: case R.id.menu_reload:
update(); update();
......
...@@ -99,7 +99,7 @@ public class NetDbEntry { ...@@ -99,7 +99,7 @@ public class NetDbEntry {
public int getCountryIcon() { public int getCountryIcon() {
// http://daniel-codes.blogspot.com/2009/12/dynamically-retrieving-resources-in.html // http://daniel-codes.blogspot.com/2009/12/dynamically-retrieving-resources-in.html
try { try {
Class res = R.drawable.class; Class<R.drawable> res = R.drawable.class;
Field field = res.getField("flag_" + mCountry); Field field = res.getField("flag_" + mCountry);
return field.getInt(null); return field.getInt(null);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment