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
  • Merge requests
  • !175

fixed a bug with ActionBar appearance on screen orientation change

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/ousenko/fff into master Apr 30, 2014
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: ousenko

This fixes the issue #174.

How DemoActivity handles the ActionBar appearance is a bit inconsistent - getActionBar.hide() and setActionBarTranslation(float) in no way lead to the same ActionBar state. Thus, a call to getActionBar.hide() should be replaced to the latter.

!getActionBar().isShowing() in onSaveInstanceState(Bundle) always result to false, thus the ActionBar is considered shown even if a panel is expanded, and is not hidden on orientation change.

I made SlidingUpPanelLayout a class member variable, which allows to check its state in onSaveInstanceState(Bundle).

When restoring the state, if we consider that ActionBar should be hidden, then we call setActionBarTranslation( - actionBarHeight ), thus moving away the ActionBar.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ousenko/fff