diff --git a/src/main/kotlin/crimera/patches/twitter/timeline/deleteFromDatabase/deleteFromDatabasePatch.kt b/src/main/kotlin/crimera/patches/twitter/timeline/deleteFromDatabase/deleteFromDatabasePatch.kt new file mode 100644 index 00000000..bb8ccae0 --- /dev/null +++ b/src/main/kotlin/crimera/patches/twitter/timeline/deleteFromDatabase/deleteFromDatabasePatch.kt @@ -0,0 +1,23 @@ +package crimera.patches.twitter.timeline.deleteFromDatabase + +import app.revanced.patcher.data.BytecodeContext +import app.revanced.patcher.patch.BytecodePatch +import app.revanced.patcher.patch.annotation.CompatiblePackage +import app.revanced.patcher.patch.annotation.Patch +import crimera.patches.twitter.misc.settings.SettingsPatch +import crimera.patches.twitter.misc.settings.fingerprints.SettingsStatusLoadFingerprint + +@Patch( + name = "Delete from database", + description = "Delete entries from database(cache)", + dependencies = [SettingsPatch::class], + compatiblePackages = [CompatiblePackage("com.twitter.android")], + use = false +) +object deleteFromDatabasePatch:BytecodePatch( + setOf(SettingsStatusLoadFingerprint) +){ + override fun execute(context: BytecodeContext) { + SettingsStatusLoadFingerprint.enableSettings("deleteFromDb") + } +} \ No newline at end of file diff --git a/src/main/resources/twitter/settings/values/arrays.xml b/src/main/resources/twitter/settings/values/arrays.xml index bc231378..48023c28 100644 --- a/src/main/resources/twitter/settings/values/arrays.xml +++ b/src/main/resources/twitter/settings/values/arrays.xml @@ -65,4 +65,16 @@ @string/button_action_share + + @string/piko_pref_hide_promoted_posts + @string/piko_pref_hide_g_ads + @string/piko_pref_wtf_section + @string/piko_pref_cts_section + @string/piko_pref_ctj_section + @string/piko_pref_ryb_section + @string/piko_pref_pinned_posts_section + @string/piko_pref_hide_detailed_posts + @string/piko_pref_hide_premium_prompt + + \ No newline at end of file diff --git a/src/main/resources/twitter/settings/values/strings.xml b/src/main/resources/twitter/settings/values/strings.xml index 2ba8c1e4..5aa0d8c8 100644 --- a/src/main/resources/twitter/settings/values/strings.xml +++ b/src/main/resources/twitter/settings/values/strings.xml @@ -22,17 +22,22 @@ Copy media link Share media link + Hide %s Ads - Hide promoted posts - Hide google ads - Hide "Who to follow" section - Hide "Creators to subscribe" section - Hide "Community to join" section - Hide "Revist your bookmark" section - Hide "Pinned posts by followers" section - Hide detailed posts (in replies) - Hide promoted trends - Hide message prompts + Promoted posts + Google ads + "Who to follow" section + "Creators to subscribe" section + "Community to join" section + "Revist your bookmark" section + "Pinned posts by followers" section + Detailed posts (in replies) + Promoted trends + Message prompts + Delete entries from database + Database not found + Database is not opened + Deleted items Misc Enable chirp font