Skip to content

Keep history imports alive across My Devices recreation #175

Description

@hamza-lzr

Follow-up to the rotation finding in #173.

The PR now dismisses the progress window before touching a destroyed Activity, so a completed import no longer tries to show a dialog through a dead window. The blocking subscription is still Activity-owned, however: rotating during a long import loses the visible operation and its eventual result.

Move history-import ownership into a ViewModel so that:

  • the import continues across Activity recreation;
  • the recreated My Devices screen reconnects to current progress;
  • exactly one final success or failure result is delivered;
  • added rows still refresh the device list and notify the map;
  • leaving the screen intentionally does not leak the Activity.

The progress/importer seam added in #173 should allow this to be tested with a latch-controlled fake.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions