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

Skip to content
Snippets Groups Projects
Commit 41b49b7b authored by str4d's avatar str4d
Browse files

Call onRouterBind() of detail fragment in two-pane mode

parent c691a11c
No related branches found
No related tags found
No related merge requests found
...@@ -420,6 +420,14 @@ public abstract class I2PActivityBase extends ActionBarActivity implements ...@@ -420,6 +420,14 @@ public abstract class I2PActivityBase extends ActionBarActivity implements
((I2PFragmentBase) f).onRouterBind(); ((I2PFragmentBase) f).onRouterBind();
else if (f instanceof I2PFragmentBase.RouterContextUser) else if (f instanceof I2PFragmentBase.RouterContextUser)
((I2PFragmentBase.RouterContextUser) f).onRouterBind(); ((I2PFragmentBase.RouterContextUser) f).onRouterBind();
if (canUseTwoPanes()) {
f = getSupportFragmentManager().findFragmentById(R.id.detail_fragment);
if (f instanceof I2PFragmentBase)
((I2PFragmentBase) f).onRouterBind();
else if (f instanceof I2PFragmentBase.RouterContextUser)
((I2PFragmentBase.RouterContextUser) f).onRouterBind();
}
} }
/** callback from ServiceConnection, override as necessary */ /** callback from ServiceConnection, override as necessary */
......
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