mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-14 09:57:31 -04:00
#2199 removed home recyclerview and adapter
This commit is contained in:
parent
567939b520
commit
90de94f79c
@ -46,6 +46,14 @@
|
||||
|
||||
<data android:scheme="content" />
|
||||
<data android:mimeType="application/octet-stream" />
|
||||
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
<action android:name="KiwixSearchWidget.TEXT_CLICKED" />
|
||||
<action android:name="KiwixSearchWidget.ICON_CLICKED" />
|
||||
<action android:name="KiwixSearchWidget.MIC_CLICKED" />
|
||||
<action android:name="KiwixSearchWidget.STAR_CLICKED" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
@ -164,14 +172,6 @@
|
||||
<service android:name=".webserver.wifi_hotspot.HotspotService" />
|
||||
|
||||
<receiver android:name=".main.KiwixSearchWidget">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
<action android:name="KiwixSearchWidget.TEXT_CLICKED" />
|
||||
<action android:name="KiwixSearchWidget.ICON_CLICKED" />
|
||||
<action android:name="KiwixSearchWidget.MIC_CLICKED" />
|
||||
<action android:name="KiwixSearchWidget.STAR_CLICKED" />
|
||||
</intent-filter>
|
||||
|
||||
<meta-data
|
||||
android:name="android.appwidget.provider"
|
||||
android:resource="@xml/kiwix_widget_provider_info" />
|
||||
|
@ -121,8 +121,6 @@ import org.kiwix.kiwixmobile.core.utils.NetworkUtils;
|
||||
import org.kiwix.kiwixmobile.core.utils.SharedPreferenceUtil;
|
||||
import org.kiwix.kiwixmobile.core.utils.StyleUtils;
|
||||
import org.kiwix.kiwixmobile.core.utils.files.FileUtils;
|
||||
import org.kiwix.kiwixmobile.core.zim_manager.fileselect_view.adapter.BookOnDiskDelegate;
|
||||
import org.kiwix.kiwixmobile.core.zim_manager.fileselect_view.adapter.BooksOnDiskAdapter;
|
||||
import org.kiwix.kiwixmobile.core.zim_manager.fileselect_view.adapter.BooksOnDiskListItem;
|
||||
|
||||
import static android.app.Activity.RESULT_CANCELED;
|
||||
@ -259,7 +257,6 @@ public abstract class CoreReaderFragment extends BaseFragment
|
||||
private RateAppCounter visitCounterPref;
|
||||
private int tempVisitCount;
|
||||
private boolean isFirstRun;
|
||||
private BooksOnDiskAdapter booksAdapter;
|
||||
private AppCompatButton downloadBookButton;
|
||||
protected ActionBar actionBar;
|
||||
private TableDrawerAdapter tableDrawerAdapter;
|
||||
@ -403,16 +400,6 @@ public abstract class CoreReaderFragment extends BaseFragment
|
||||
handleIntentExtras(getActivity().getIntent());
|
||||
|
||||
wasHideToolbar = isHideToolbar;
|
||||
booksAdapter = new BooksOnDiskAdapter(
|
||||
new BookOnDiskDelegate.BookDelegate(sharedPreferenceUtil,
|
||||
bookOnDiskItem -> {
|
||||
open(bookOnDiskItem);
|
||||
return Unit.INSTANCE;
|
||||
},
|
||||
null,
|
||||
null),
|
||||
BookOnDiskDelegate.LanguageDelegate.INSTANCE
|
||||
);
|
||||
|
||||
searchFiles();
|
||||
tabRecyclerView.setAdapter(tabsAdapter);
|
||||
@ -1777,9 +1764,6 @@ public abstract class CoreReaderFragment extends BaseFragment
|
||||
@Override
|
||||
public void setHomePage(View view) {
|
||||
painter.deactivateNightMode(getCurrentWebView(), videoView);
|
||||
RecyclerView homeRecyclerView = view.findViewById(R.id.recycler_view);
|
||||
presenter.loadBooks();
|
||||
homeRecyclerView.setAdapter(booksAdapter);
|
||||
updateTitle();
|
||||
}
|
||||
|
||||
@ -1789,7 +1773,6 @@ public abstract class CoreReaderFragment extends BaseFragment
|
||||
|
||||
@Override
|
||||
public void addBooks(List<BooksOnDiskListItem> books) {
|
||||
booksAdapter.setItems(books);
|
||||
}
|
||||
|
||||
private void searchFiles() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user