mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 15:27:55 -04:00
Merge pull request #1392 from kiwix/feature/macgills/#1391-history-crash
HistoryActivity crashes when ZimFile is null #1391 - fix dao - supres…
This commit is contained in:
commit
40571e7f34
@ -45,7 +45,7 @@ class HistoryDao @Inject constructor(val box: Box<HistoryEntity>) {
|
||||
fun getHistoryList(showHistoryCurrentBook: Boolean) = box
|
||||
.query {
|
||||
if (showHistoryCurrentBook) {
|
||||
equal(HistoryEntity_.zimFilePath, ZimContentProvider.getZimFile())
|
||||
equal(HistoryEntity_.zimFilePath, ZimContentProvider.getZimFile() ?: "")
|
||||
}
|
||||
orderDesc(HistoryEntity_.timeStamp)
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ import static org.kiwix.kiwixmobile.zim_manager.local_file_transfer.LocalFileTra
|
||||
/**
|
||||
* Manager for the Wifi-P2p API, used in the local file transfer module
|
||||
*/
|
||||
@SuppressWarnings("MissingPermission")
|
||||
public class WifiDirectManager
|
||||
implements WifiP2pManager.ChannelListener, WifiP2pManager.PeerListListener,
|
||||
WifiP2pManager.ConnectionInfoListener,
|
||||
|
Loading…
x
Reference in New Issue
Block a user