@@ -21,6 +21,15 @@ public class Settings
2121 public const string HOME_PACKAGE_NAME = "com.amazon.tv.launcher" ;
2222 public const string HOME_CLASS_NAME = "com.amazon.tv.launcher.ui.HomeActivity" ;
2323
24+ public static readonly Dictionary < string , int > ICON_OVERRIDES = new Dictionary < string , int > {
25+ { Android . Provider . Settings . ActionSettings , Resource . Drawable . settings } ,
26+ { Settings . HOME_PACKAGE_NAME , Resource . Drawable . firetvicon } ,
27+ } ;
28+
29+ public static readonly Dictionary < string , string > RENAME_MAPPINGS = new Dictionary < string , string > {
30+ { Settings . HOME_PACKAGE_NAME , "FireTV Home" }
31+ } ;
32+
2433 static Settings ( )
2534 {
2635 Instance = new Settings ( ) ;
@@ -34,17 +43,6 @@ public Settings ()
3443 Blacklist = new List < string > ( ) ;
3544 Ordering = new List < AppOrder > ( ) ;
3645
37- if ( Blacklist . Count <= 0 ) {
38- Blacklist . Add ( "com.altusapps.firedtvlauncher" ) ;
39- Blacklist . Add ( "com.amazon.avod" ) ;
40- Blacklist . Add ( "com.amazon.bueller.photos" ) ;
41- Blacklist . Add ( "com.amazon.device.bluetoothdfu" ) ;
42- Blacklist . Add ( "com.amazon.device.gmo" ) ;
43- Blacklist . Add ( "com.amazon.venezia" ) ;
44- Blacklist . Add ( "com.amazon.storm.lightning.tutorial" ) ;
45- Blacklist . Add ( "com.broadcom.wfd.client" ) ;
46- }
47-
4846 HideLabels = false ;
4947 LabelFontSize = 18 ;
5048 TwentyFourHourTime = false ;
@@ -85,9 +83,16 @@ public Settings ()
8583
8684 public static string GetWallpaperFilename ( )
8785 {
88- var path = System . Environment . GetFolderPath ( System . Environment . SpecialFolder . MyDocuments ) ;
89- var filename = System . IO . Path . Combine ( path , "wallpaper.png" ) ;
90- return filename ;
86+ try {
87+ var path = System . Environment . GetFolderPath ( System . Environment . SpecialFolder . MyDocuments ) ;
88+ var filename = System . IO . Path . Combine ( path , "wallpaper.png" ) ;
89+
90+ if ( File . Exists ( filename ) )
91+ return filename ;
92+ } catch {
93+ }
94+
95+ return null ;
9196 }
9297
9398
@@ -185,6 +190,17 @@ public static void Load ()
185190 catch ( Exception ex ) {
186191 Log . Error ( "Failed to load settings file" , ex ) ;
187192 Settings . Instance = new Settings ( ) ;
193+
194+ if ( Settings . Instance . Blacklist . Count <= 0 ) {
195+ Settings . Instance . Blacklist . Add ( "com.altusapps.firedtvlauncher" ) ;
196+ Settings . Instance . Blacklist . Add ( "com.amazon.avod" ) ;
197+ Settings . Instance . Blacklist . Add ( "com.amazon.bueller.photos" ) ;
198+ Settings . Instance . Blacklist . Add ( "com.amazon.device.bluetoothdfu" ) ;
199+ Settings . Instance . Blacklist . Add ( "com.amazon.device.gmo" ) ;
200+ Settings . Instance . Blacklist . Add ( "com.amazon.venezia" ) ;
201+ Settings . Instance . Blacklist . Add ( "com.amazon.storm.lightning.tutorial" ) ;
202+ Settings . Instance . Blacklist . Add ( "com.broadcom.wfd.client" ) ;
203+ }
188204 }
189205 }
190206
0 commit comments