Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A AndroidSlidingUpPanel
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 267
    • Issues 267
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Umano: News Read To You
  • AndroidSlidingUpPanel
  • Issues
  • #401
Closed
Open
Issue created Mar 05, 2015 by Administrator@rootContributor

Stuck with PanelState.DRAGGING after device rotation

Created by: lupsaa

Hello, recently I stumbled upon one issue with SlidingUpPanel.

I have the layout totally hidden by default and I open it from a floating action button using slidingUpLayout.setPanelState(PanelState.EXPANDED); Closing the layout is handled by the default drag action.

If by any chance the user is dragging the layout and a screen rotation is triggered, the layout will resume with its state equal to PanelState.DRAGGING.

This makes it impossible to open it again programmatically using setPanelState() as I've read through the method code because of: if (!isEnabled() || (!mFirstLayout && mSlideableView == null) || state == mSlideState || mSlideState == PanelState.DRAGGING) return;

A fix would be to disable storing PanelState as DRAGGING in onSaveInstanceState().

EDIT: I fixed this temporarilyextending the class and using reflection in onRestoreInstanceState()

Assignee
Assign to
Time tracking