mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-06 03:50:19 +02:00
code simplification
This commit is contained in:
parent
04c7819ef3
commit
a63a5aeaaf
1 changed files with 3 additions and 7 deletions
|
@ -391,14 +391,10 @@ public class NetworkLibraryActivity extends TreeActivity implements NetworkLibra
|
|||
if (AddCustomCatalogActivity.ADD_CATALOG.equals(intent.getAction())) {
|
||||
final ICustomNetworkLink link = AddCustomCatalogActivity.getLinkFromIntent(intent);
|
||||
if (link != null) {
|
||||
runOnUiThread(new Runnable() {
|
||||
public void run() {
|
||||
final NetworkLibrary library = NetworkLibrary.Instance();
|
||||
library.addCustomLink(link);
|
||||
library.synchronize();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue