Anoni 9bcd9595da Fixing a Bug in Which Lawnchair crashes due to features value not set. Fix #5337 (#5347)
* Fixing a Bug in Which Lawnchair crashes due to features value not set.

Bug Description
Error:
hf.c: Field 'features' is required for type [...] but it was missing from Issues #5337
Cause:
The LiveInformation class expects a non-null features field during deserialization, but the incoming data (e.g., from cached preferences or an API response) lacks this field. This crashes the app when parsing older data formats or incomplete responses.

Fix
Root Issue:
Kotlinx Serialization requires fields marked as non-optional (no default value) to be present in the input data. The features and announcements fields were missing defaults, causing deserialization failures.

Solution:
Add default values to the LiveInformation data class to ensure backward compatibility with legacy data:


@Serializable
data class LiveInformation(
    private val version: Int = 2,
    val announcements: List<Announcement> = emptyList(), // Default empty list
    val features: Map<String, String?> = emptyMap(),     // Default empty map
) {
    companion object {
        val default = LiveInformation() // Simplified
    }
}

* Fomat Fix and old way of initializing object
2025-03-20 23:09:17 +01:00
2024-09-14 10:49:35 +08:00
2024-10-06 17:33:30 +08:00
2025-02-01 12:16:20 +08:00
2025-01-12 01:49:28 +00:00
2024-11-03 20:03:46 +08:00
2025-02-12 16:21:25 +08:00
2025-02-01 13:35:48 +08:00
2024-12-04 12:47:47 +08:00
2024-11-03 18:45:48 +08:00
2022-05-17 23:14:06 +07:00
2025-01-08 09:50:43 +00:00
2022-08-10 15:07:14 +05:30
2024-04-30 10:03:35 +08:00
2021-10-06 09:43:50 +07:00
Fix
2024-09-15 08:50:28 +08:00
Fix
2024-09-15 08:50:28 +08:00
2024-12-19 07:57:45 +08:00
2019-11-25 20:24:07 +09:00
2024-08-20 21:26:39 +08:00
2024-03-22 15:45:32 -07:00
2024-11-03 20:03:46 +08:00
2024-08-20 21:26:39 +08:00

Lawnchair 15

Build debug APK Build release APK Crowdin OpenCollective Telegram Discord

Google Pixel running Lawnchair Launcher with green wallpaper

Lawnchair is a free, open-source home app for Android. Taking Launcher3—Androids default home app—as a starting point, it ports Pixel Launcher features and introduces rich customization options.

This branch houses the codebase of Lawnchair 15, which is currently in development and is based on Launcher3 from Android 15. For Lawnchair 9 to 14, see the branches with the 9- to 14- prefixes, respectively.

Features

  • Material You Theming: Adapts to your wallpaper and system theme.
  • At a Glance Widget: Displays information at a glance with support for Smartspacer extensions.
  • QuickSwitch Support: Integrates with Android Recents on Android 10 and newer. (requires root)
  • Global Search: Allows quick access to apps, contacts, and web results from the home screen.
  • Customization Options: Provides options to tweak icons, fonts, and colors to your liking.
  • And more!

Download

Get it on Google Play Get it on IzzyOnDroid Get it on Obtainium Get it on GitHub

Lawnchair on Play Store will install as a different app from other sources. Some features may be restricted to comply with Google Play's publishing rules.

Development builds

Interested in keeping yourself up-to-date with every Lawnchair development? Try our development build!

These builds offer the latest features and bug fixes at a cost of being slower and introducing new bugs. Ensure that you make backups before installing.

Download: ObtainiumGitHubnightly.link

Verification

Verify the integrity of your Lawnchair download using these SHA-256 hashes:

Source SHA-256 Hash
Anywhere 74:7C:36:45:B3:57:25:8B:2E:23:E8:51:E5:3C:96:74:7F:E0:AD:D0:07:E5:BA:2C:D9:7E:8C:85:57:2E:4D:C5
Google Play 47:AC:92:63:1C:60:35:13:CC:8D:26:DD:9C:FF:E0:71:9A:8B:36:55:44:DC:CE:C2:09:58:24:EC:25:61:20:A7

Contributing

Please visit the Lawnchair Contributing Guidelines for information and tips on contributing to Lawnchair.

You can view all our links in the Lawnchair Wiki.

S
Description
No description provided
Readme 658 MiB
Languages
Java 57.2%
Kotlin 42.4%
AIDL 0.3%