package Ġcom . t ari . android . wallet . ui . fragment . settings . backup . backup Settings Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . viewModel Scope Ċ import Ġcom . or h ano but . logger . Logger Ċ import Ġcom . t ari . android . wallet . R Ċ import Ġcom . t ari . android . wallet . data . shared Prefs . Shared Prefs Repository Ċ import Ġcom . t ari . android . wallet . event . EventBus Ċ import Ġcom . t ari . android . wallet . infrastructure . backup . Backup Manager Ċ import Ġcom . t ari . android . wallet . infrastructure . backup . Backup State Ċ import Ġcom . t ari . android . wallet . infrastructure . backup . Backup Storage Auth Rev oked Exception Ċ import Ġcom . t ari . android . wallet . infrastructure . backup . Backup Storage Full Exception Ċ import Ġcom . t ari . android . wallet . ui . common . Common ViewModel Ċ import Ġcom . t ari . android . wallet . ui . common . Single Live Event Ċ import Ġcom . t ari . android . wallet . ui . dialog . backup . Backup Settings Repository Ċ import Ġcom . t ari . android . wallet . ui . dialog . error . Error Dialog Args Ċ import Ġcom . t ari . android . wallet . ui . fragment . settings . user Autor ization . Bio metric Authentication ViewModel Ċ import Ġkotlinx . coroutines . Dispatch ers Ċ import Ġkotlinx . coroutines . launch Ċ import Ġorg . joda . time . DateTime Ċ import Ġjava . net . Unknown Host Exception Ċ import Ġjava . util .* Ċ import Ġjavax . inject . Inject Ċ Ċ internal Ġclass ĠBackup Settings ViewModel Ġ: ĠCommon ViewModel () Ġ{ ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġbackup Manager : ĠBackup Manager ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġbackup Settings Repository : ĠBackup Settings Repository ĊĊĠĠĠ Ġlateinit Ġvar Ġbio metric Authentication ViewModel : ĠBio metric Authentication ViewModel ĊĊĠĠĠ Ġval Ġbackup Options Are Visible Ġ= ĠMutable LiveData ( true ) ĊĠĠĠ Ġval Ġfolder Selection Was Successful Ġ= ĠMutable LiveData ( false ) ĊĊĠĠĠ Ġprivate Ġval Ġ_ cloud Backup Status Ġ= ĠSingle Live Event < Cloud Backup Status >() ĊĠĠĠ Ġval Ġcloud Backup Status : ĠLive Data < Cloud Backup Status > Ġ= Ġ_ cloud Backup Status ĊĊĠĠĠ Ġprivate Ġval Ġ_ navigation Ġ= ĠSingle Live Event < Backup Settings Navigation >() ĊĠĠĠ Ġval Ġnavigation : ĠLive Data < Backup Settings Navigation > Ġ= Ġ_ navigation ĊĊĠĠĠ Ġprivate Ġval Ġ_ is Backup Available Ġ= ĠMutable LiveData < Boolean >() ĊĠĠĠ Ġval Ġis Backup Available : ĠLive Data < Boolean > Ġ= Ġ_ is Backup Available ĊĊĠĠĠ Ġprivate Ġval Ġ_ backup Permission Switch Checked Ġ= ĠMutable LiveData < Boolean >() ĊĠĠĠ Ġval Ġbackup Permission Switch : ĠLive Data < Boolean > Ġ= Ġ_ backup Permission Switch Checked ĊĊĠĠĠ Ġprivate Ġval Ġ_ in Progress Ġ= ĠMutable LiveData < Boolean >() ĊĠĠĠ Ġval Ġin Progress : ĠLive Data < Boolean > Ġ= Ġ_ in Progress ĊĊĠĠĠ Ġprivate Ġval Ġ_ open Folder Selection Ġ= ĠSingle Live Event < Unit >() ĊĠĠĠ Ġval Ġopen Folder Selection : ĠLive Data < Unit > Ġ= Ġ_ open Folder Selection ĊĊĠĠĠ Ġprivate Ġval Ġ_ show Backups Will Be Deleted Dialog Ġ= ĠSingle Live Event < Backups Will Be Deleted Dialog Args >() ĊĠĠĠ Ġval Ġshow Backups Will Be Deleted Dialog : ĠLive Data < Backups Will Be Deleted Dialog Args > Ġ= Ġ_ show Backups Will Be Deleted Dialog ĊĊĠĠĠ Ġprivate Ġval Ġ_ backup Wallet To Cloud Enabled Ġ= ĠMutable LiveData < Boolean >() ĊĠĠĠ Ġval Ġbackup Wallet To Cloud Enabled : ĠLive Data < Boolean > Ġ= Ġ_ backup Wallet To Cloud Enabled ĊĊĠĠĠ Ġprivate Ġval Ġ_ is Backup Now Enabled Ġ= ĠMutable LiveData < Boolean >() ĊĠĠĠ Ġval Ġis Backup Now Enabled : ĠLive Data < Boolean > Ġ= Ġ_ is Backup Now Enabled ĊĊĠĠĠ Ġprivate Ġval Ġ_ backup StateChanged Ġ= ĠMutable LiveData < Unit >() ĊĠĠĠ Ġval Ġbackup StateChanged : ĠLive Data < Unit > Ġ= Ġ_ backup StateChanged ĊĊĠĠĠ Ġprivate Ġval Ġ_ backup Password Ġ= ĠMutable LiveData < Optional < String >>() ĊĠĠĠ Ġval Ġbackup Password : ĠLive Data < Optional < String >> Ġ= Ġ_ backup Password ĊĊĠĠĠ Ġprivate Ġval Ġ_ last Successful Backup Date Ġ= ĠMutable LiveData < Optional < DateTime >>() ĊĠĠĠ Ġval Ġlast Successful Backup Date : ĠLive Data < Optional < DateTime >> Ġ= Ġ_ last Successful Backup Date ĊĊĠĠĠ Ġprivate Ġval Ġ_ update Password Enabled Ġ= ĠMutable LiveData < Boolean >() ĊĠĠĠ Ġval Ġupdate Password Enabled : ĠLive Data < Boolean > Ġ= Ġ_ update Password Enabled ĊĊĠĠĠ Ġprivate Ġval Ġ_ backup Option Visibility Ġ= ĠMutable LiveData < Boolean >() ĊĠĠĠ Ġval Ġbackup Options Visibility : ĠLive Data < Boolean > Ġ= Ġ_ backup Option Visibility ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġcomponent ?. inject ( this ) ĊĊĠĠĠĠĠĠĠ ĠEvent Bus . backup State . subscribe ( this , Ġthis :: on Backup StateChanged ) ĊĊĠĠĠĠĠĠĠ Ġbackup Options Are Visible . post Value ( backup Settings Repository . backup IsEnabled ) ĊĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( backup Settings Repository . backup IsEnabled ) ĊĠĠĠĠĠĠĠ Ġ_ backup StateChanged . post Value ( Unit ) ĊĠĠĠĠĠĠĠ Ġref ill Shared Prefs Data () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġon Activity Result ( request Code : ĠInt , ĠresultCode : ĠInt , Ġdata : ĠIntent ?) Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel Scope . launch ( Dispatch ers . IO ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbackup Manager . on Setup Activity Result ( request Code , ĠresultCode , Ġdata ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfolder Selection Was Successful . post Value ( true ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ_ blocked Back Pressed . post Value ( true ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbackup Manager . backup ( is Initial Backup Ġ= Ġtrue ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġcatch Ġ( exception : ĠException ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠLogger . e (" Backup Ġstorage Ġsetup Ġfailed : Ġ$ exception ") ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbackup Manager . turn Off ( delete Existing Backups Ġ= Ġtrue ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġshow Backup Storage Setup Failed Dialog ( exception ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġfinally Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ_ blocked Back Pressed . post Value ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġon Backup With Recovery Phrase () Ġ{ ĊĠĠĠĠĠĠĠ Ġbio metric Authentication ViewModel . require Authorization Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ navigation . post Value ( Backup Settings Navigation . To Wallet Backup With Recovery Phrase ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠonUpdate Password () Ġ{ ĊĠĠĠĠĠĠĠ Ġbio metric Authentication ViewModel . require Authorization Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( backup Settings Repository . backup Password Ġ== Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ_ navigation . post Value ( Backup Settings Navigation . To Change Password ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ_ navigation . post Value ( Backup Settings Navigation . To Confirm Password ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġon Backup To Cloud () Ġ{ ĊĠĠĠĠĠĠĠ ĠviewModel Scope . launch ( Dispatch ers . IO ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbackup Manager . backup ( is Initial Backup Ġ= Ġfalse , Ġuser Triggered Ġ= Ġtrue ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġcatch Ġ( exception : ĠException ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġshow Backup Failure Dialog ( exception ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġon Backup Permission Switch ( isChecked : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( isChecked ) ĊĊĠĠĠĠĠĠĠ Ġif Ġ( isChecked ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ open Folder Selection . post Value ( Unit ) ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtry To Turn Off Backup () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġtry To Turn Off Backup () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġargs Ġ= ĠBack ups Will Be Deleted Dialog Args ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġon Accept Ġ= Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠviewModel Scope . launch ( Dispatch ers . IO ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ// todo Ġlooks Ġnot Ġfinished ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġbackup Manager . turn Off ( delete Existing Backups Ġ= Ġtrue ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġcatch Ġ( exception : ĠException ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠLogger . i ( exception . toString ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ}, Ġon Dismiss Ġ= Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( true ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠĠĠĠĠ Ġ_ show Backups Will Be Deleted Dialog . post Value ( args ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġref ill Shared Prefs Data () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ backup Password . post Value ( Optional . of Nullable ( backup Settings Repository . backup Password )) ĊĠĠĠĠĠĠĠ Ġ_ last Successful Backup Date . post Value ( Optional . of Nullable ( backup Settings Repository . last Successful Backup Date )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġshow Backup Storage Setup Failed Dialog ( exception : ĠException ? Ġ= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġerror Title Ġ= Ġwhen Ġ( exception ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠBackup Storage Full Exception Ġ-> Ġresource Manager . getString ( R . string . backup _ wallet _ storage _ full _ title ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġresource Manager . getString ( R . string . back _ up _ wallet _ storage _ setup _ error _ title ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġval Ġerror Description Ġ= Ġwhen Ġ( exception ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠBackup Storage Full Exception Ġ-> Ġresource Manager . getString ( R . string . backup _ wallet _ storage _ full _ desc ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġresource Manager . getString ( R . string . back _ up _ wallet _ storage _ setup _ error _ desc ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ_ error Dialog . post Value ( Error Dialog Args ( error Title , Ġerror Description ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġshow Backup Failure Dialog ( exception : ĠException ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġerror Title Ġ= Ġwhen Ġ( exception ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠBackup Storage Full Exception Ġ-> Ġresource Manager . getString ( R . string . backup _ wallet _ storage _ full _ title ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġresource Manager . getString ( R . string . back _ up _ wallet _ back ing _ up _ error _ title ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġval Ġerror Description Ġ= Ġwhen Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexception Ġis ĠBackup Storage Full Exception Ġ-> Ġresource Manager . getString ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠR . string . backup _ wallet _ storage _ full _ desc ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexception Ġis ĠBackup Storage Auth Rev oked Exception Ġ-> Ġresource Manager . getString ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠR . string . check _ backup _ storage _ status _ auth _ rev oked _ error _ description ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexception Ġis ĠUnknown Host Exception Ġ-> Ġresource Manager . getString ( R . string . error _ no _ connection _ title ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexception ?. message Ġ== Ġnull Ġ-> Ġresource Manager . getString ( R . string . back _ up _ wallet _ back ing _ up _ unknown _ error ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> Ġresource Manager . getString ( R . string . back _ up _ wallet _ back ing _ up _ error _ desc , Ġexception . message !! ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ_ error Dialog . post Value ( Error Dialog Args ( error Title , Ġerror Description )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġon Backup StateChanged ( backup State : ĠBackup State ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ backup Wallet To Cloud Enabled . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup StateChanged . post Value ( Unit ) ĊĠĠĠĠĠĠĠ Ġref ill Shared Prefs Data () ĊĠĠĠĠĠĠĠ Ġwhen Ġ( backup State ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBackup State . Backup Disabled Ġ-> Ġhandle Disabled State () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBackup State . Backup Checking Storage Ġ-> Ġhandle Checking Storage State () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBackup State . Backup Storage Check Failed Ġ-> Ġhandle Storage Check Failed State () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBackup State . Backup Scheduled Ġ-> Ġhandle Scheduled State () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBackup State . Backup InProgress Ġ-> Ġhandle InProgress State () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠBackup State . Backup Up ToDate Ġ-> Ġhandle Up ToDate State () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠBackup State . Backup OutOf Date Ġ-> Ġhandle OutOf Date State ( backup State ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle OutOf Date State ( backup State : ĠBackup State . Backup OutOf Date ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( backup Options Are Visible . value !! ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( folder Selection Was Successful . value !! ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġfolder Selection Was Successful . post Value ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġshow Backup Failure Dialog ( backup State . backup Exception ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( true ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ backup Wallet To Cloud Enabled . post Value ( true ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ is Backup Available . post Value ( true ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ is Backup Now Enabled . post Value ( true ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ update Password Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ cloud Backup Status . post Value ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠCloud Backup Status . Warning ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠR . string . back _ up _ wallet _ backup _ status _ out dated , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠR . color . all _ settings _ back _ up _ status _ error ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġshow Backup Storage Setup Failed Dialog () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( false ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle Up ToDate State () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup Option Visibility . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ update Password Enabled . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup Wallet To Cloud Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Available . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Now Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ cloud Backup Status . post Value ( Cloud Backup Status . Success ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle InProgress State () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup Wallet To Cloud Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Available . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Now Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ update Password Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ cloud Backup Status . post Value ( Cloud Backup Status . InProgress ( R . string . back _ up _ wallet _ backup _ status _ in _ progress )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle Scheduled State () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup Wallet To Cloud Enabled . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Available . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Now Enabled . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ update Password Enabled . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġif Ġ( backup Settings Repository . backup Failure Date Ġ== Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ cloud Backup Status . post Value ( Cloud Backup Status . Scheduled ) ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ_ cloud Backup Status . post Value ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠCloud Backup Status . Warning ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠR . string . back _ up _ wallet _ backup _ status _ scheduled , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠR . color . all _ settings _ back _ up _ status _ processing ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle Storage Check Failed State () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup Wallet To Cloud Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Available . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Now Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ cloud Backup Status . post Value ( Cloud Backup Status . Warning ( color Ġ= ĠR . color . all _ settings _ back _ up _ status _ error )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle Checking Storage State () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ backup Wallet To Cloud Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Available . post Value ( true ) ĊĠĠĠĠĠĠĠ Ġ_ is Backup Now Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ update Password Enabled . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ cloud Backup Status . post Value ( Cloud Backup Status . InProgress ( R . string . back _ up _ wallet _ backup _ status _ checking _ backup )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġhandle Disabled State () Ġ{ ĊĠĠĠĠĠĠĠ Ġ_ backup Option Visibility . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ in Progress . post Value ( false ) ĊĠĠĠĠĠĠĠ Ġ_ backup Permission Switch Checked . post Value ( false ) ĊĠĠĠ Ġ} Ċ } ĊĊ