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

Skip to content
Snippets Groups Projects
Commit 2fa205da authored by str4d's avatar str4d
Browse files

Router-down fixes

parent 3644d738
No related branches found
No related tags found
No related merge requests found
......@@ -98,6 +98,9 @@ public class AddressbookFragment extends ListFragment implements
// active Fragment when onRouterBind() was called.
if (mOnRouterBind || getRouterContext() != null)
onRouterConnectionReady();
else
setEmptyText(getResources().getString(
R.string.router_not_running));
}
public void onRouterConnectionReady() {
......
......@@ -112,6 +112,9 @@ public class NetDbListFragment extends ListFragment implements
// active Fragment when onRouterBind() was called.
if (mOnRouterBind || getRouterContext() != null)
onRouterConnectionReady();
else
setEmptyText(getResources().getString(
R.string.router_not_running));
}
public void onRouterConnectionReady() {
......@@ -159,9 +162,11 @@ public class NetDbListFragment extends ListFragment implements
// Handle presses on the action bar items
switch (item.getItemId()) {
case R.id.action_refresh:
setListShown(false);
getLoaderManager().restartLoader(mRouters ? ROUTER_LOADER_ID
: LEASESET_LOADER_ID, null, this);
if (getRouterContext() != null) {
setListShown(false);
getLoaderManager().restartLoader(mRouters ? ROUTER_LOADER_ID
: LEASESET_LOADER_ID, null, this);
}
return true;
default:
return super.onOptionsItemSelected(item);
......
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