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

Skip to content
Snippets Groups Projects
Commit 14e1a2dc authored by str4d's avatar str4d
Browse files

Notify user if router not running when opening graph settings

parent d2385166
No related branches found
No related tags found
No related merge requests found
......@@ -17,4 +17,4 @@ android.library.reference.1=./routerjars
# If the relative path differs in your local environment,
# override this in the base local.properties
# (not routerjars/local.properties)
android.library.reference.2=../android-sdk-linux/extras/android/support/v7/appcompat
android.library.reference.2=../../../android/adt-bundle-linux-x86_64/sdk/extras/android/support/v7/appcompat
......@@ -103,6 +103,10 @@ public class SettingsActivity extends PreferenceActivity {
groupPrefs.addPreference(statPref);
}
}
} else {
PreferenceCategory noRouter = new PreferenceCategory(context);
noRouter.setTitle(R.string.router_not_running);
ps.addPreference(noRouter);
}
}
......
......@@ -81,9 +81,9 @@ public abstract class Util {
public static void i(String m, Throwable t) {
I2PAppContext ctx = I2PAppContext.getCurrentContext();
if (ctx != null)
/*if (ctx != null)
ctx.logManager().getLog(Util.class).log(Log.INFO, m, t);
else if (t != null)
else*/ if (t != null)
android.util.Log.i(ANDROID_TAG, m + ' ' + t + ' ' + android.util.Log.getStackTraceString(t));
else
android.util.Log.i(ANDROID_TAG, m);
......
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