mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
Listener moved from NetworkView to NetworkLibrary
This commit is contained in:
parent
384eb25009
commit
88f888f668
18 changed files with 74 additions and 91 deletions
|
@ -143,14 +143,4 @@ public abstract class Util implements UserRegistrationConstants {
|
|||
final NetworkTree.Key key = (NetworkTree.Key)intent.getSerializableExtra(NetworkLibraryActivity.TREE_KEY_KEY);
|
||||
return library.getTreeByKey(key);
|
||||
}
|
||||
|
||||
public static void clearTree(Activity activity, final NetworkCatalogTree tree) {
|
||||
activity.runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
tree.ChildrenItems.clear();
|
||||
tree.clear();
|
||||
NetworkView.Instance().fireModelChanged();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue