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,13 +391,9 @@ public class NetworkLibraryActivity extends TreeActivity implements NetworkLibra
|
||||||
if (AddCustomCatalogActivity.ADD_CATALOG.equals(intent.getAction())) {
|
if (AddCustomCatalogActivity.ADD_CATALOG.equals(intent.getAction())) {
|
||||||
final ICustomNetworkLink link = AddCustomCatalogActivity.getLinkFromIntent(intent);
|
final ICustomNetworkLink link = AddCustomCatalogActivity.getLinkFromIntent(intent);
|
||||||
if (link != null) {
|
if (link != null) {
|
||||||
runOnUiThread(new Runnable() {
|
final NetworkLibrary library = NetworkLibrary.Instance();
|
||||||
public void run() {
|
library.addCustomLink(link);
|
||||||
final NetworkLibrary library = NetworkLibrary.Instance();
|
library.synchronize();
|
||||||
library.addCustomLink(link);
|
|
||||||
library.synchronize();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue