package Ġeu . kan ade . t ach iy omi . data . preference Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . Build Ċ import Ġandroid . os . Environment Ċ import Ġandroidx . core . content . edit Ċ import Ġandroidx . core . net . to Uri Ċ import Ġandroidx . preference . Preference Manager Ċ import Ġcom . f red por ci unc ula . flow . preferences . Flow SharedPreferences Ċ import Ġeu . kan ade . domain . anime source . inter actor . Set Migrate Sorting Ċ import Ġeu . kan ade . t ach iy omi . R Ċ import Ġeu . kan ade . t ach iy omi . data . database . models . An ime Ċ import Ġeu . kan ade . t ach iy omi . data . track . Track Service Ċ import Ġeu . kan ade . t ach iy omi . data . track . an il ist . An il ist Ċ import Ġeu . kan ade . t ach iy omi . ui . anime lib . setting . DisplayMode Setting Ċ import Ġeu . kan ade . t ach iy omi . ui . anime lib . setting . Sort Direction Setting Ċ import Ġeu . kan ade . t ach iy omi . ui . anime lib . setting . Sort Mode Setting Ċ import Ġeu . kan ade . t ach iy omi . util . system . Device Util Ċ import Ġeu . kan ade . t ach iy omi . util . system . is Dev Flavor Ċ import Ġeu . kan ade . t ach iy omi . widget . Extended Navigation View Ċ import Ġjava . io . File Ċ import Ġjava . text . DateFormat Ċ import Ġjava . text . SimpleDateFormat Ċ import Ġjava . util . Locale Ċ import Ġeu . kan ade . t ach iy omi . data . preference . Preference Keys Ġas ĠKeys Ċ import Ġeu . kan ade . t ach iy omi . data . preference . Preference Values Ġas ĠValues Ċ Ċ class ĠPreferences Helper ( val Ġcontext : ĠContext ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġprefs Ġ= ĠPreference Manager . getDefault SharedPreferences ( context ) ĊĠĠĠ Ġprivate Ġval Ġflow Prefs Ġ= ĠFlow SharedPreferences ( prefs ) ĊĊĠĠĠ Ġprivate Ġval Ġdefault Downloads Dir Ġ= ĠFile ( ĊĠĠĠĠĠĠĠ ĠEnvironment . get External Storage Directory (). absolute Path Ġ+ ĠFile . separator Ġ+ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontext . getString ( R . string . app _ name ), ĊĠĠĠĠĠĠĠ Ġ" downloads ", ĊĠĠĠ Ġ). to Uri () ĊĊĠĠĠ Ġprivate Ġval Ġdefault Backup Dir Ġ= ĠFile ( ĊĠĠĠĠĠĠĠ ĠEnvironment . get External Storage Directory (). absolute Path Ġ+ ĠFile . separator Ġ+ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontext . getString ( R . string . app _ name ), ĊĠĠĠĠĠĠĠ Ġ" backup ", ĊĠĠĠ Ġ). to Uri () ĊĊĠĠĠ Ġfun Ġstart Screen () Ġ= Ġprefs . getInt ( Keys . start Screen , Ġ 1 ) ĊĊĠĠĠ Ġfun Ġconfirm Exit () Ġ= Ġprefs . getBoolean ( Keys . confirm Exit , Ġfalse ) ĊĊĠĠĠ Ġfun Ġside Nav Icon Alignment () Ġ= Ġflow Prefs . getInt (" pref _ side _ nav _ icon _ alignment ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġuse Authenticator () Ġ= Ġflow Prefs . getBoolean (" use _ bio metric _ lock ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġlock App After () Ġ= Ġflow Prefs . getInt (" lock _ app _ after ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġlast App Unlock () Ġ= Ġflow Prefs . getLong (" last _ app _ unlock ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġsecure Screen () Ġ= Ġflow Prefs . get Enum (" secure _ screen _ v 2 ", ĠValues . Secure Screen Mode . IN CO GN IT O ) ĊĊĠĠĠ Ġfun Ġhide Notification Content () Ġ= Ġprefs . getBoolean ( Keys . hide Notification Content , Ġfalse ) ĊĊĠĠĠ Ġfun Ġauto Update Metadata () Ġ= Ġprefs . getBoolean ( Keys . auto Update Metadata , Ġfalse ) ĊĊĠĠĠ Ġfun Ġauto Update Track ers () Ġ= Ġprefs . getBoolean ( Keys . auto Update Track ers , Ġfalse ) ĊĊĠĠĠ Ġfun Ġtheme Mode () Ġ= Ġflow Prefs . get Enum ( ĊĠĠĠĠĠĠĠ Ġ" pref _ theme _ mode _ key ", ĊĠĠĠĠĠĠĠ Ġif Ġ( Build . VERSION . SDK _ INT Ġ>= ĠBuild . VERSION _ CODES . O ) Ġ{ ĠValues . Theme Mode . system Ġ} Ġelse Ġ{ ĠValues . Theme Mode . light Ġ}, ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġfun Ġapp Theme () Ġ= Ġflow Prefs . get Enum ( ĊĠĠĠĠĠĠĠ Ġ" pref _ app _ theme ", ĊĠĠĠĠĠĠĠ Ġif Ġ( Device Util . is Dynamic Color Available ) Ġ{ ĠValues . App Theme . MON ET Ġ} Ġelse Ġ{ ĠValues . App Theme . DEFAULT Ġ}, ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġfun Ġtheme Dark A mo led () Ġ= Ġflow Prefs . getBoolean (" pref _ theme _ dark _ amo led _ key ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġpip Episode Toast s () Ġ= Ġprefs . getBoolean ( Keys . pip Episode Toast s , Ġtrue ) ĊĊĠĠĠ Ġfun Ġautoplay Enabled () Ġ= Ġflow Prefs . getBoolean (" pref _ auto _ play _ enabled ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġinverted Playback Txt () Ġ= Ġflow Prefs . getBoolean (" pref _ invert _ playback _ txt ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġmp v Conf () Ġ= Ġprefs . getString ( Keys . mp v Conf , Ġ"") ĊĊĠĠĠ Ġfun Ġdefault Player Orientation Type () Ġ= Ġprefs . getString ( Keys . default Player Orientation Type , Ġ" 1 0 ") !!. toInt () ĊĊĠĠĠ Ġfun Ġadjust Orientation Video Dimensions () Ġ= Ġprefs . getBoolean ( Keys . adjust Orientation Video Dimensions , Ġtrue ) ĊĊĠĠĠ Ġfun Ġdefault Player Orientation Land scape () Ġ= Ġprefs . getString ( Keys . default Player Orientation Land scape , Ġ" 6 ") !!. toInt () ĊĊĠĠĠ Ġfun Ġdefault Player Orientation Por trait () Ġ= Ġprefs . getString ( Keys . default Player Orientation Por trait , Ġ" 7 ") !!. toInt () ĊĊĠĠĠ Ġfun Ġget Player Speed () Ġ= Ġprefs . get Float ( Keys . player Speed , Ġ 1 F ) ĊĊĠĠĠ Ġfun Ġset Player Speed ( new Speed : ĠFloat ) Ġ= Ġprefs . edit Ġ{ ĊĠĠĠĠĠĠĠ Ġput Float ( Keys . player Speed , Ġnew Speed ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġget Player Fast Seek () Ġ= Ġprefs . getBoolean ( Keys . player Fast Seek , Ġfalse ) ĊĊĠĠĠ Ġfun Ġget Player View Mode () Ġ= Ġprefs . getInt ( Keys . player View Mode , Ġ 1 ) ĊĊĠĠĠ Ġfun Ġplayer Fullscreen () Ġ= Ġprefs . getBoolean (" player _ fullscreen ", Ġtrue ) ĊĊĠĠĠ Ġfun Ġset Player View Mode ( new Mode : ĠInt ) Ġ= Ġprefs . edit Ġ{ ĊĠĠĠĠĠĠĠ Ġput Int ( Keys . player View Mode , Ġnew Mode ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġalways Use External Player () Ġ= Ġprefs . getBoolean ( Keys . always Use External Player , Ġfalse ) ĊĊĠĠĠ Ġfun Ġexternal Player Preference () Ġ= Ġprefs . getString ( Keys . external Player Preference , Ġ"") ĊĊĠĠĠ Ġfun Ġprogress Preference () Ġ= Ġprefs . getString ( Keys . progress Preference , Ġ" 0 . 8 5 F ") !!. toFloat () ĊĊĠĠĠ Ġfun Ġskip Length Preference () Ġ= Ġprefs . getString ( Keys . skip Length Preference , Ġ" 1 0 ") !!. toInt () ĊĊĠĠĠ Ġfun Ġreader Theme () Ġ= Ġflow Prefs . getInt (" pref _ reader _ theme _ key ", Ġ 1 ) ĊĊĠĠĠ Ġfun Ġnavigation Mode Pager () Ġ= Ġflow Prefs . getInt (" reader _ navigation _ mode _ pager ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġnavigation Mode Web to on () Ġ= Ġflow Prefs . getInt (" reader _ navigation _ mode _ web to on ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġpor trait Columns () Ġ= Ġflow Prefs . getInt (" pref _ library _ columns _ portrait _ key ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġlandscape Columns () Ġ= Ġflow Prefs . getInt (" pref _ library _ columns _ land scape _ key ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġauto Update Track () Ġ= Ġprefs . getBoolean ( Keys . auto Update Track , Ġtrue ) ĊĊĠĠĠ Ġfun Ġlast Used An ime Source () Ġ= Ġflow Prefs . getLong (" last _ anime _ catalog ue _ source ", Ġ- 1 ) ĊĊĠĠĠ Ġfun Ġlast Used An ime Category () Ġ= Ġflow Prefs . getInt (" last _ used _ anime _ category ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġlast Version Code () Ġ= Ġflow Prefs . getInt (" last _ version _ code ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġsource DisplayMode () Ġ= Ġflow Prefs . get Enum (" pref _ display _ mode _ catalog ue ", ĠDisplay Mode Setting . COMP ACT _ GRID ) ĊĊĠĠĠ Ġfun Ġenabled Languages () Ġ= Ġflow Prefs . getString Set (" source _ languages ", Ġset Of (" all ", Ġ" en ", ĠLocale . getDefault (). language )) ĊĊĠĠĠ Ġfun Ġtrack Username ( sync : ĠTrack Service ) Ġ= Ġprefs . getString ( Keys . track Username ( sync . id ), Ġ"") ĊĊĠĠĠ Ġfun Ġtrack Password ( sync : ĠTrack Service ) Ġ= Ġprefs . getString ( Keys . track Password ( sync . id ), Ġ"") ĊĊĠĠĠ Ġfun Ġset Track Credentials ( sync : ĠTrack Service , Ġusername : ĠString , Ġpassword : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġprefs . edit Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput String ( Keys . track Username ( sync . id ), Ġusername ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput String ( Keys . track Password ( sync . id ), Ġpassword ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġtrack Token ( sync : ĠTrack Service ) Ġ= Ġflow Prefs . getString ( Keys . track Token ( sync . id ), Ġ"") ĊĊĠĠĠ Ġfun Ġan il ist Score Type () Ġ= Ġflow Prefs . getString (" an il ist _ score _ type ", ĠAn il ist . POINT _ 1 0 ) ĊĊĠĠĠ Ġfun Ġbackups Directory () Ġ= Ġflow Prefs . getString (" backup _ directory ", Ġdefault Backup Dir . toString ()) ĊĊĠĠĠ Ġfun Ġrelative Time () Ġ= Ġflow Prefs . getInt (" relative _ time ", Ġ 7 ) ĊĊĠĠĠ Ġfun ĠdateFormat ( format : ĠString Ġ= Ġflow Prefs . getString ( Keys . date Format , Ġ""). get ()): ĠDate Format Ġ= Ġwhen Ġ( format ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ"" Ġ-> ĠDate Format . getDate Instance ( DateFormat . SHORT ) ĊĠĠĠĠĠĠĠ Ġelse Ġ-> ĠSimpleDateFormat ( format , ĠLocale . getDefault ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġdownloads Directory () Ġ= Ġflow Prefs . getString (" download _ directory ", Ġdefault Downloads Dir . toString ()) ĊĊĠĠĠ Ġfun Ġuse External Downloader () Ġ= Ġprefs . getBoolean ( Keys . use External Downloader , Ġfalse ) ĊĊĠĠĠ Ġfun Ġexternal Downloader Selection () Ġ= Ġprefs . getString ( Keys . external Downloader Selection , Ġ"") ĊĊĠĠĠ Ġfun Ġdownload Only Over Wifi () Ġ= Ġprefs . getBoolean ( Keys . download Only Over Wifi , Ġtrue ) ĊĊĠĠĠ Ġfun ĠnumberOf Backups () Ġ= Ġflow Prefs . getInt (" backup _ slots ", Ġ 2 ) ĊĊĠĠĠ Ġfun Ġbackup Interval () Ġ= Ġflow Prefs . getInt (" backup _ interval ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġbackup Flags () Ġ= Ġflow Prefs . getString Set (" backup _ flags ", Ġset Of ( FLAG _ CATEG ORIES , ĠFLAG _ E PI SO DES , ĠFLAG _ HISTORY , ĠFLAG _ TRACK )) ĊĊĠĠĠ Ġfun Ġremove After Read Slots () Ġ= Ġprefs . getInt ( Keys . remove After Read Slots , Ġ- 1 ) ĊĊĠĠĠ Ġfun Ġremove After Marked As Read () Ġ= Ġprefs . getBoolean ( Keys . remove After Marked As Read , Ġfalse ) ĊĊĠĠĠ Ġfun Ġremove Book marked Chapter s () Ġ= Ġprefs . getBoolean ( Keys . remove Book marked Chapter s , Ġfalse ) ĊĊĠĠĠ Ġfun Ġremove Exclude An ime Categories () Ġ= Ġflow Prefs . getString Set (" remove _ exclude _ categories _ anime ", Ġempty Set ()) ĊĊĠĠĠ Ġfun Ġlibrary Update Interval () Ġ= Ġflow Prefs . getInt (" pref _ library _ update _ interval _ key ", Ġ 2 4 ) ĊĊĠĠĠ Ġfun Ġlibrary Update Device Restriction () Ġ= Ġflow Prefs . getString Set (" library _ update _ restriction ", Ġset Of ( DEVICE _ ONLY _ ON _ WIFI )) ĊĠĠĠ Ġfun Ġlibrary Update M anga Restriction () Ġ= Ġflow Prefs . getString Set (" library _ update _ manga _ restriction ", Ġset Of ( AN IME _ HAS _ UN SE EN , ĠAN IME _ NON _ COMPLETED , ĠAN IME _ NON _ SE EN )) ĊĊĠĠĠ Ġfun Ġshow Updates Nav Badge () Ġ= Ġflow Prefs . getBoolean (" library _ update _ show _ tab _ badge ", Ġfalse ) ĊĠĠĠ Ġfun Ġunread Updates Count () Ġ= Ġflow Prefs . getInt (" library _ unread _ updates _ count ", Ġ 0 ) ĊĠĠĠ Ġfun Ġun seen Updates Count () Ġ= Ġflow Prefs . getInt (" library _ un seen _ updates _ count ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġan ime lib Update Categories () Ġ= Ġflow Prefs . getString Set (" anime lib _ update _ categories ", Ġempty Set ()) ĊĊĠĠĠ Ġfun Ġan ime lib Update Categories Exclude () Ġ= Ġflow Prefs . getString Set (" anime lib _ update _ categories _ exclude ", Ġempty Set ()) ĊĊĠĠĠ Ġfun Ġlibrary DisplayMode () Ġ= Ġflow Prefs . get Enum (" pref _ display _ mode _ library ", ĠDisplay Mode Setting . COMP ACT _ GRID ) ĊĊĠĠĠ Ġfun Ġdownload Badge () Ġ= Ġflow Prefs . getBoolean (" display _ download _ badge ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġlocal Badge () Ġ= Ġflow Prefs . getBoolean (" display _ local _ badge ", Ġtrue ) ĊĊĠĠĠ Ġfun Ġdownloaded Only () Ġ= Ġflow Prefs . getBoolean (" pref _ downloaded _ only ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġunread Badge () Ġ= Ġflow Prefs . getBoolean (" display _ unread _ badge ", Ġtrue ) ĊĊĠĠĠ Ġfun Ġlanguage Badge () Ġ= Ġflow Prefs . getBoolean (" display _ language _ badge ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġan ime Category Tabs () Ġ= Ġflow Prefs . getBoolean (" display _ anime _ category _ tabs ", Ġtrue ) ĊĊĠĠĠ Ġfun Ġan ime Category NumberOf Items () Ġ= Ġflow Prefs . getBoolean (" display _ number _ of _ items _ anime ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġfilter Downloaded () Ġ= Ġflow Prefs . getInt ( Keys . filter Downloaded , ĠExtended Navigation View . Item . Tri State Group . State . IGNORE . value ) ĊĊĠĠĠ Ġfun Ġfilter Un read () Ġ= Ġflow Prefs . getInt ( Keys . filter Un read , ĠExtended Navigation View . Item . Tri State Group . State . IGNORE . value ) ĊĊĠĠĠ Ġfun Ġfilter Started () Ġ= Ġflow Prefs . getInt ( Keys . filter Started , ĠExtended Navigation View . Item . Tri State Group . State . IGNORE . value ) ĊĊĠĠĠ Ġfun Ġfilter Completed () Ġ= Ġflow Prefs . getInt ( Keys . filter Completed , ĠExtended Navigation View . Item . Tri State Group . State . IGNORE . value ) ĊĊĠĠĠ Ġfun Ġfilter Tracking ( name : ĠInt ) Ġ= Ġflow Prefs . getInt ("${ Keys . filter Tracked }_ $ name ", ĠExtended Navigation View . Item . Tri State Group . State . IGNORE . value ) ĊĊĠĠĠ Ġfun Ġlibrary Sorting Mode () Ġ= Ġflow Prefs . get Enum ( Keys . library Sorting Mode , ĠSort Mode Setting . ALPH AB ET ICAL ) ĊĠĠĠ Ġfun Ġlibrary Sorting Ascending () Ġ= Ġflow Prefs . get Enum ( Keys . library Sorting Direction , ĠSort Direction Setting . ASC ENDING ) ĊĊĠĠĠ Ġfun Ġmigration Sorting Mode () Ġ= Ġflow Prefs . get Enum ( Keys . migration Sorting Mode , ĠSet Migrate Sorting . Mode . ALPH AB ET ICAL ) ĊĠĠĠ Ġfun Ġmigration Sorting Direction () Ġ= Ġflow Prefs . get Enum ( Keys . migration Sorting Direction , ĠSet Migrate Sorting . Direction . ASC ENDING ) ĊĊĠĠĠ Ġfun Ġautomatic Ext Updates () Ġ= Ġflow Prefs . getBoolean (" automatic _ ext _ updates ", Ġtrue ) ĊĊĠĠĠ Ġfun Ġshow N sf w Source () Ġ= Ġflow Prefs . getBoolean (" show _ ns fw _ source ", Ġtrue ) ĊĊĠĠĠ Ġfun Ġextension Updates Count () Ġ= Ġflow Prefs . getInt (" ext _ updates _ count ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġan ime extension Updates Count () Ġ= Ġflow Prefs . getInt (" anime ext _ updates _ count ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġlast App Check () Ġ= Ġflow Prefs . getLong (" last _ app _ check ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġlast Ext Check () Ġ= Ġflow Prefs . getLong (" last _ ext _ check ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġlast An ime Ext Check () Ġ= Ġflow Prefs . getLong (" last _ anime _ ext _ check ", Ġ 0 ) ĊĊĠĠĠ Ġfun Ġsearch Pin ned Sources Only () Ġ= Ġprefs . getBoolean ( Keys . search Pin ned Sources Only , Ġfalse ) ĊĊĠĠĠ Ġfun Ġdisabled Sources () Ġ= Ġflow Prefs . getString Set (" hidden _ catalog ues ", Ġempty Set ()) ĊĊĠĠĠ Ġfun Ġdisabled An ime Sources () Ġ= Ġflow Prefs . getString Set (" hidden _ catalog ues ", Ġempty Set ()) ĊĊĠĠĠ Ġfun Ġpinned An ime Sources () Ġ= Ġflow Prefs . getString Set (" pinned _ anime _ catalog ues ", Ġempty Set ()) ĊĊĠĠĠ Ġfun Ġdownload New Episode () Ġ= Ġflow Prefs . getBoolean ( Keys . download New Episode , Ġfalse ) ĊĊĠĠĠ Ġfun Ġdownload New Episode Categories () Ġ= Ġflow Prefs . getString Set (" download _ new _ categories _ anime ", Ġempty Set ()) ĊĊĠĠĠ Ġfun Ġdownload New Episode Categories Exclude () Ġ= Ġflow Prefs . getString Set (" download _ new _ categories _ exclude _ anime ", Ġempty Set ()) ĊĊĠĠĠ Ġfun Ġlang () Ġ= Ġflow Prefs . getString (" app _ language ", Ġ"") ĊĊĠĠĠ Ġfun Ġdefault An ime Category () Ġ= Ġprefs . getInt ( Keys . default An ime Category , Ġ- 1 ) ĊĊĠĠĠ Ġfun Ġcategor ized Display Settings () Ġ= Ġflow Prefs . getBoolean (" categor ized _ display ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġskip Read () Ġ= Ġprefs . getBoolean ( Keys . skip Read , Ġfalse ) ĊĊĠĠĠ Ġfun Ġskip Filtered () Ġ= Ġprefs . getBoolean ( Keys . skip Filtered , Ġtrue ) ĊĊĠĠĠ Ġfun Ġmigrate Flags () Ġ= Ġflow Prefs . getInt (" migrate _ flags ", ĠInt . MAX _ VALUE ) ĊĊĠĠĠ Ġfun Ġtrusted Signatures () Ġ= Ġflow Prefs . getString Set (" trusted _ signatures ", Ġempty Set ()) ĊĊĠĠĠ Ġfun Ġdo h Provider () Ġ= Ġprefs . getInt ( Keys . do h Provider , Ġ- 1 ) ĊĊĠĠĠ Ġfun Ġlast Search Query Search Settings () Ġ= Ġflow Prefs . getString (" last _ search _ query ", Ġ"") ĊĊĠĠĠ Ġfun Ġfilter Episode By Seen () Ġ= Ġprefs . getInt ( Keys . default Episode Filter By Seen , ĠAn ime . SHOW _ ALL ) ĊĊĠĠĠ Ġfun Ġfilter Episode By Downloaded () Ġ= Ġprefs . getInt ( Keys . default Episode Filter By Downloaded , ĠAn ime . SHOW _ ALL ) ĊĊĠĠĠ Ġfun Ġfilter Episode By Book marked () Ġ= Ġprefs . getInt ( Keys . default Episode Filter By Book marked , ĠAn ime . SHOW _ ALL ) ĊĊĠĠĠ Ġfun Ġfilter Episode By Fill er marked () Ġ= Ġprefs . getInt ( Keys . default Episode Filter By Fill er marked , ĠAn ime . SHOW _ ALL ) ĊĊĠĠĠ Ġfun Ġsort Episode By Source Or Number () Ġ= Ġprefs . getInt ( Keys . default Episode Sort By Source Or Number , ĠAn ime . E PI SO DE _ SORT ING _ SOURCE ) ĊĊĠĠĠ Ġfun Ġdisplay Episode ByName Or Number () Ġ= Ġprefs . getInt ( Keys . default Episode Display ByName Or Number , ĠAn ime . E PI SO DE _ DISPLAY _ NAME ) ĊĊĠĠĠ Ġfun Ġsort Episode By Ascending Or Descending () Ġ= Ġprefs . getInt ( Keys . default Episode Sort By Ascending Or Descending , ĠAn ime . E PI SO DE _ SORT _ DESC ) ĊĊĠĠĠ Ġfun Ġin cognito Mode () Ġ= Ġflow Prefs . getBoolean (" in cognito _ mode ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġtablet Ui Mode () Ġ= Ġflow Prefs . get Enum (" tablet _ ui _ mode ", ĠValues . Tablet Ui Mode . AUT OM AT IC ) ĊĊĠĠĠ Ġfun Ġbottom Bar Labels () Ġ= Ġflow Prefs . getBoolean (" pref _ show _ bottom _ bar _ labels ", Ġtrue ) ĊĊĠĠĠ Ġfun Ġshow Nav Updates () Ġ= Ġflow Prefs . getBoolean (" pref _ show _ updates _ button ", Ġtrue ) ĊĊĠĠĠ Ġfun Ġshow Nav History () Ġ= Ġflow Prefs . getBoolean (" pref _ show _ history _ button ", Ġtrue ) ĊĊĠĠĠ Ġfun Ġextension Installer () Ġ= Ġflow Prefs . get Enum ( ĊĠĠĠĠĠĠĠ Ġ" extension _ installer ", ĊĠĠĠĠĠĠĠ Ġif Ġ( Device Util . is Mi ui ) ĠValues . Extension Installer . LEG ACY Ġelse ĠValues . Extension Installer . PACKAGE INSTALL ER , ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġfun Ġverbose Logging () Ġ= Ġprefs . getBoolean ( Keys . verbose Logging , Ġis Dev Flavor ) ĊĊĠĠĠ Ġfun Ġduplicate Pin ned Sources () Ġ= Ġflow Prefs . getBoolean (" duplicate _ pinned _ sources ", Ġfalse ) ĊĊĠĠĠ Ġfun Ġset Episode Settings Default ( anime : ĠAn ime ) Ġ{ ĊĠĠĠĠĠĠĠ Ġprefs . edit Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput Int ( Keys . default Episode Filter By Seen , Ġan ime . seen Filter ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput Int ( Keys . default Episode Filter By Downloaded , Ġan ime . downloaded Filter ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput Int ( Keys . default Episode Filter By Book marked , Ġan ime . book marked Filter ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput Int ( Keys . default Episode Filter By Fill er marked , Ġan ime . fill er marked Filter ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput Int ( Keys . default Episode Sort By Source Or Number , Ġan ime . sorting ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput Int ( Keys . default Episode Display ByName Or Number , Ġan ime . displayMode ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġput Int ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠKeys . default Episode Sort By Ascending Or Descending , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( anime . sort Descending ()) ĠAn ime . E PI SO DE _ SORT _ DESC Ġelse ĠAn ime . E PI SO DE _ SORT _ ASC , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ