Skip to content
Snippets Groups Projects

TabBarCoordinator: Retain and restore the last used tab when VLC starts

Merged Edgar Fouillet requested to merge edrflt/vlc-ios:feature__retain_last_page into master

This commit makes VLC store the last used tab into User Defaults, which is a hack.

I tried using Apple state retainment API, see Preserving Your App's UI Across Launches, but could not restore the state after saving it.
I think the TabBarCoordinator needs some rework to :

  • inherit UIViewControllerRestoration;
  • override decodeRestorableState and encodeRestorableState correctly.
Edited by Edgar Fouillet

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading