Skip to content

24 hour time format resets to default after full restart #17154

Closed

Description

@hartmannj

The 24 hour time format resets itself to default after a full restart.
My emulator is set to 24h format and ui.window.alwaysUse24HourFormat says TRUE the first time the app starts after assemble. I can switch to another app and come back or do a hot reload and it stays TRUE. However, when doing a full restart alwaysUse24HourFormat will give FALSE.

Version:
Flutter 0.3.5 • channel dev • https://github.com/flutter/flutter.git
Framework • revision 7ffcd3d (7 days ago) • 2018-04-24 14:03:41 -0700
Engine • revision ec61147
Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b

Activity

  1. slightfoot commented on May 1, 2018

    @slightfoot
    Member

    This came up from a conversation on the Flutter Study Group linked here: https://flutterstudygroup.slack.com/archives/CACLB2TGC/p1525186221000266

    Highlights are below.
    Looks like the dart code which updates the ui.window by hooks.dart is not being called after hot-reload or full-restart. Looking into the details from the FlutterView side the "user settings" (text scale and 24hr format) only get updated on the kSettingsChannel on creation of the Activity and onConfigurationChanged. Which does not account for hot-reload and/or full-restart.

    So this is an issue more about persisting the current settings across the Isolate reload. Looking into it further it seem's RuntimeController::FlushRuntimeStateToIsolate does not call SetUserSettingsData which is the only part I can see where it might be the cause of the bug.

  2. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Jul 26, 2018
  3. added this to the milestone on Jul 26, 2018
  4. added
    t: hot reloadReloading code during "flutter run"
    engineflutter/engine related. See also e: labels.
    a: internationalizationSupporting other languages or locales. (aka i18n)
    on Dec 28, 2018
  5. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Sep 16, 2019
  6. modified the milestones: , on Jan 7, 2020
  7. added
    P3Issues that are less important to the Flutter project
    on May 29, 2020
  8. modified the milestone: on Jun 1, 2020
  9. removed this from the milestone on Jun 16, 2020
  10. removed this from the milestone on Aug 17, 2020
  11. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Aug 26, 2020
  12. TahaTesser commented on Sep 7, 2020

    @TahaTesser
    Contributor

    I see there's an open issue addressing the case you described. #13703
    Please follow up on that issue, I'm closing the current one as a duplicate.
    If you disagree, please write in the comments and I will reopen it.
    Thank you

  13. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Dec 30, 2020
  14. github-actions commented on Aug 7, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: internationalizationSupporting other languages or locales. (aka i18n)engineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.t: hot reloadReloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions