mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 06:17:57 +01:00 
			
		
		
		
	Fixed wrong download filter from commit #33386e2
Fixed another tab not in TabLayout error. Drawable to Vector Removed Filter... Toast
This commit is contained in:
		| @@ -239,7 +239,6 @@ class LibraryFragment : BaseRxFragment<LibraryPresenter>(), ActionMode.Callback | ||||
|         adapter.notifyDataSetChanged() | ||||
|         adapter.refreshRegisteredAdapters() | ||||
|         activity.supportInvalidateOptionsMenu(); | ||||
|         ToastUtil.showShort(context, getString(R.string.library_filter_change)) | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -166,9 +166,12 @@ class LibraryPresenter : BasePresenter<LibraryFragment>() { | ||||
|  | ||||
|             // Does it have downloaded chapters. | ||||
|             var hasDownloaded = false | ||||
|             var hasUnread = false | ||||
|  | ||||
|             // Does it have unread chapters. | ||||
|             val hasUnread = manga.unread > 0 | ||||
|             if (prefFilterUnread) { | ||||
|                 // Does it have unread chapters. | ||||
|                 hasUnread = manga.unread > 0 | ||||
|             } | ||||
|  | ||||
|             if (prefFilterDownloaded) { | ||||
|                 val mangaDir = downloadManager.getAbsoluteMangaDirectory(sourceManager.get(manga.source), manga) | ||||
|   | ||||
| @@ -77,6 +77,13 @@ public class MangaActivity extends BaseRxActivity<MangaPresenter> { | ||||
|         adapter = new MangaDetailAdapter(getSupportFragmentManager(), this); | ||||
|  | ||||
|         viewPager.setAdapter(adapter); | ||||
|  | ||||
|         // Workaround to prevent: Tab belongs to a different TabLayout. | ||||
|         // Internal bug in Support library v23.2.0. | ||||
|         // See https://code.google.com/p/android/issues/detail?id=201827 | ||||
|         for (int j = 0; j < 17; j++) | ||||
|             tabs.newTab(); | ||||
|  | ||||
|         tabs.setupWithViewPager(viewPager); | ||||
|  | ||||
|         if (!isOnline) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user