/* Ċ Ġ* ĠCopyright ĠÂ© Ġ 2 0 2 0 ĠBy ĠG eek s ĠEmp ire . Ċ Ġ* Ċ Ġ* ĠCreated Ġby ĠE li as ĠF azel Ċ Ġ* ĠLast Ġmodified Ġ 1 1 / 1 4 / 2 0 Ġ 4 : 2 7 ĠAM Ċ Ġ* Ċ Ġ* ĠLicensed ĠUnder ĠMIT ĠLicense . Ċ Ġ* Ġhttps :// opensource . org / licenses / MIT Ċ Ġ*/ Ċ Ċ package Ġnet . ge ek st ools . float short . PRO . Search Engine . Widgets Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . util . Typed Value Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . google . firebase . auth . k tx . auth Ċ import Ġcom . google . firebase . k tx . Firebase Ċ import Ġnet . ge ek st ools . float short . PRO . Search Engine . UI . Search Engine Ċ import Ġnet . ge ek st ools . float short . PRO . Search Engine . Widgets . Extensions . setup Widget Activity User Interface Ċ import Ġnet . ge ek st ools . float short . PRO . Utils . Functions .* Ċ import Ġnet . ge ek st ools . float short . PRO . Utils . UI . Custom Icon Manager . Load Custom Icons Ċ import Ġnet . ge ek st ools . float short . PRO . databinding . Search Engine Widget Activity Binding Ċ Ċ class ĠWidget Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġsearch Engine Widget Activity Binding : ĠSearch Engine Widget Activity Binding ĊĊĠĠĠ Ġval Ġfunctions Class Legacy : ĠFunctions Class Legacy Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ ĠFunctions Class Legacy ( application Context ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġval Ġpreferences IO : ĠPreferences IO Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ ĠPreferences IO ( application Context ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġsearch Engine Widget Activity Binding Ġ= ĠSearch Engine Widget Activity Binding . inflate ( layout Inflater ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( search Engine Widget Activity Binding . root ) ĊĊĠĠĠĠĠĠĠ Ġval Ġload Custom Icons Ġ= ĠLoad Custom Icons ( application Context , Ġfunctions Class Legacy . custom Icon PackageName ()) ĊĠĠĠĠĠĠĠ Ġload Custom Icons . load () ĊĊĠĠĠĠĠĠĠ Ġfunctions Class Legacy . check Light Dark Theme () ĊĠĠĠĠĠĠĠ Ġfunctions Class Legacy . load Saved Color () ĊĊĠĠĠĠĠĠĠ ĠPublic Variable . floating Size Number Ġ= Ġpreferences IO . read Default Preference (" floating Size ", Ġ 3 9 ) ĊĠĠĠĠĠĠĠ ĠPublic Variable . floating Views HW Ġ= ĠTyped Value . apply Dimension ( Typed Value . COMPLEX _ UNIT _ DIP , ĠPublic Variable . floating Size Number . toFloat (), Ġthis . resources . display Metrics ). toInt () ĊĊĠĠĠĠĠĠĠ Ġsetup Widget Activity User Interface () ĊĊĠĠĠĠĠĠĠ Ġ/* Search ĠEngine */ ĊĠĠĠĠĠĠĠ ĠSearch Engine ( activity Ġ= Ġthis @ Widget Activity , Ġcontext Ġ= Ġapplication Context , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġsearch Engine View Binding Ġ= Ġsearch Engine Widget Activity Binding . search Engine View Include , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfunctions Class Legacy Ġ= Ġfunctions Class Legacy , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfile IO Ġ= ĠFile IO ( application Context ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfloating Services Ġ= ĠFloating Services ( application Context ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcustom Icons Ġ= Ġload Custom Icons , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfirebase Auth Ġ= ĠFirebase . auth , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġrequest Focus Ġ= Ġtrue ). apply Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġinitialize Search Engine Data () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ/* Search ĠEngine */ ĊĊĠĠĠ Ġ} Ċ Ċ }