mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 05:04:50 -04:00
Remove open zims method from ZimHostActivity
This commit is contained in:
parent
182a0d91a0
commit
cd74150f21
@ -109,10 +109,7 @@ public class ZimHostActivity extends BaseActivity implements
|
||||
}
|
||||
BookOnDiskDelegate.BookDelegate bookDelegate =
|
||||
new BookOnDiskDelegate.BookDelegate(sharedPreferenceUtil,
|
||||
bookOnDiskItem -> {
|
||||
open(bookOnDiskItem);
|
||||
return Unit.INSTANCE;
|
||||
},
|
||||
null,
|
||||
null,
|
||||
bookOnDiskItem -> {
|
||||
select(bookOnDiskItem);
|
||||
@ -194,14 +191,6 @@ public class ZimHostActivity extends BaseActivity implements
|
||||
}
|
||||
}
|
||||
|
||||
private void open(@Nullable BooksOnDiskListItem.BookOnDisk bookOnDisk) {
|
||||
File file = bookOnDisk.getFile();
|
||||
Intent zimFile = new Intent(this, MainActivity.class);
|
||||
zimFile.setData(Uri.fromFile(file));
|
||||
startActivity(zimFile);
|
||||
finish();
|
||||
}
|
||||
|
||||
private void select(@NonNull BooksOnDiskListItem.BookOnDisk bookOnDisk) {
|
||||
ArrayList<BooksOnDiskListItem> booksList = new ArrayList<>();
|
||||
for (BooksOnDiskListItem item : booksAdapter.getItems()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user