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