mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 17:59:33 +02:00
Fix
This commit is contained in:
parent
9587e38660
commit
53f57f1032
3 changed files with 14 additions and 14 deletions
|
@ -471,8 +471,7 @@ public class BookCollectionShadow extends AbstractBookCollection implements Serv
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
myInterface.saveCover(SerializerUtil.serialize(book), url);
|
return myInterface.saveCover(SerializerUtil.serialize(book), url);
|
||||||
return true;
|
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -277,8 +277,7 @@ public class LibraryService extends Service {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean saveCover(String book, String url) throws RemoteException {
|
public boolean saveCover(String book, String url) throws RemoteException {
|
||||||
myCollection.saveCover(SerializerUtil.deserializeBook(book), url);
|
return myCollection.saveCover(SerializerUtil.deserializeBook(book), url);
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -727,8 +727,10 @@ public class BookCollection extends AbstractBookCollection {
|
||||||
outStream.close();
|
outStream.close();
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
return false;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue