Skip to content

Commit

Permalink
Fix: Crash on start #747 #746
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirosakiMio committed Dec 20, 2024
1 parent decbabd commit 2cf9343
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ public static Theme getTheme(Context context) {
boolean closeSkinModel = sharedPreferences.getBoolean("close_skin_model", false);
boolean modified = sharedPreferences.getBoolean("modified", false);
int animationSpeed = sharedPreferences.getInt("animation_speed", 8);
Bitmap lt = ImageUtil.load(FCLPath.LT_BACKGROUND_PATH).orElse(ConvertUtils.getBitmapFromRes(context, R.drawable.background_light));
Bitmap lt = ImageUtil.load(context.getFilesDir().getAbsolutePath() + "/background/lt.png").orElse(ConvertUtils.getBitmapFromRes(context, R.drawable.background_light));
BitmapDrawable backgroundLt = new BitmapDrawable(context.getResources(), lt);
Bitmap dk = ImageUtil.load(FCLPath.DK_BACKGROUND_PATH).orElse(ConvertUtils.getBitmapFromRes(context, R.drawable.background_dark));
Bitmap dk = ImageUtil.load(context.getFilesDir().getAbsolutePath() + "/background/dk.png").orElse(ConvertUtils.getBitmapFromRes(context, R.drawable.background_dark));
BitmapDrawable backgroundDk = new BitmapDrawable(context.getResources(), dk);
return new Theme(color, color2, fullscreen, closeSkinModel, animationSpeed, backgroundLt, backgroundDk, modified);
}
Expand Down

0 comments on commit 2cf9343

Please sign in to comment.