diff --git a/app/src/debug/AndroidManifest.xml b/app/src/debug/AndroidManifest.xml deleted file mode 100644 index 5b4f937ef..000000000 --- a/app/src/debug/AndroidManifest.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 82ae7cc68..3d68b4970 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -103,9 +103,10 @@ + + android:resource="@xml/remote_action" /> + (AppSettings.KEY_TRACKER_DEBUG)?.run { + isEnabled = false + setSummary(R.string.check_for_new_chapters_disabled) + } + } } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { @@ -67,6 +74,12 @@ class AboutSettingsFragment : BasePreferenceFragment(R.string.about) { true } + AppSettings.KEY_TRACKER_DEBUG -> { + startActivity(Intent(preference.context, TrackerDebugActivity::class.java)) + true + } + + else -> super.onPreferenceTreeClick(preference) } } diff --git a/app/src/debug/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackDebugAD.kt b/app/src/main/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackDebugAD.kt similarity index 100% rename from app/src/debug/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackDebugAD.kt rename to app/src/main/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackDebugAD.kt diff --git a/app/src/debug/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackDebugItem.kt b/app/src/main/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackDebugItem.kt similarity index 100% rename from app/src/debug/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackDebugItem.kt rename to app/src/main/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackDebugItem.kt diff --git a/app/src/debug/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugActivity.kt b/app/src/main/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugActivity.kt similarity index 98% rename from app/src/debug/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugActivity.kt rename to app/src/main/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugActivity.kt index bcd0c59a0..517008984 100644 --- a/app/src/debug/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugActivity.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugActivity.kt @@ -32,6 +32,7 @@ class TrackerDebugActivity : BaseActivity(), OnList val tracksAdapter = BaseListAdapter() .addDelegate(ListItemType.FEED, trackDebugAD(this, coil, this)) with(viewBinding.recyclerView) { + setHasFixedSize(true) adapter = tracksAdapter addItemDecoration(TypedListSpacingDecoration(context, false)) } diff --git a/app/src/debug/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugViewModel.kt b/app/src/main/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugViewModel.kt similarity index 100% rename from app/src/debug/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugViewModel.kt rename to app/src/main/kotlin/org/koitharu/kotatsu/tracker/ui/debug/TrackerDebugViewModel.kt diff --git a/app/src/debug/res/layout/activity_tracker_debug.xml b/app/src/main/res/layout/activity_tracker_debug.xml similarity index 100% rename from app/src/debug/res/layout/activity_tracker_debug.xml rename to app/src/main/res/layout/activity_tracker_debug.xml diff --git a/app/src/debug/res/layout/item_track_debug.xml b/app/src/main/res/layout/item_track_debug.xml similarity index 99% rename from app/src/debug/res/layout/item_track_debug.xml rename to app/src/main/res/layout/item_track_debug.xml index 66eb54ee7..dfd208c68 100644 --- a/app/src/debug/res/layout/item_track_debug.xml +++ b/app/src/main/res/layout/item_track_debug.xml @@ -14,6 +14,7 @@ android:layout_height="40dp" android:layout_marginStart="8dp" android:layout_marginTop="16dp" + android:layout_marginBottom="16dp" android:scaleType="centerCrop" app:layout_constraintBottom_toBottomOf="parent" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9a91f317b..211b746d0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -648,4 +648,6 @@ Skip the connectivity check in case you have issues with it (e.g. going offline mode even though the network is connected) Disable NSFW notifications Do not show notifications about NSFW manga updates + Checking for new chapters log + Debug information about background checks for new chapters diff --git a/app/src/main/res/xml/pref_about.xml b/app/src/main/res/xml/pref_about.xml index cc976ef86..2ce94cb0c 100644 --- a/app/src/main/res/xml/pref_about.xml +++ b/app/src/main/res/xml/pref_about.xml @@ -28,6 +28,12 @@ android:key="logs_share" android:title="@string/share_logs" /> + +