From 8f8bbcb19f365d49403a54cc68355b4864025d7d Mon Sep 17 00:00:00 2001
From: str4d <str4d@mail.i2p>
Date: Sun, 16 Mar 2014 10:50:00 +0000
Subject: [PATCH] Show "router not ready" message on graph settings page

---
 src/net/i2p/android/router/SettingsActivity.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/net/i2p/android/router/SettingsActivity.java b/src/net/i2p/android/router/SettingsActivity.java
index 12735a3c0..245f4ea60 100644
--- a/src/net/i2p/android/router/SettingsActivity.java
+++ b/src/net/i2p/android/router/SettingsActivity.java
@@ -51,9 +51,7 @@ public class SettingsActivity extends PreferenceActivity {
                 addPreferencesFromResource(R.xml.settings_net);
             } else if (ACTION_PREFS_GRAPHS.equals(action)){
                 addPreferencesFromResource(R.xml.settings_graphs);
-                RouterContext ctx = getRouterContext();
-                if (ctx != null)
-                    setupGraphSettings(this, getPreferenceScreen(), ctx);
+                setupGraphSettings(this, getPreferenceScreen(), getRouterContext());
             } else if (ACTION_PREFS_LOGGING.equals(action)) {
                 addPreferencesFromResource(R.xml.settings_logging);
                 RouterContext ctx = getRouterContext();
-- 
GitLab