Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dhina17
platform_frameworks_base
Commits
997e7b7e
Commit
997e7b7e
authored
7 years ago
by
Mike Digman
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix null running task info in SysUI tests" into pi-dev
parents
61aebf6d
121b11ff
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
+6
-2
6 additions, 2 deletions
...droid/systemui/statusbar/phone/NavigationBarFragment.java
with
6 additions
and
2 deletions
packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarFragment.java
+
6
−
2
View file @
997e7b7e
...
...
@@ -103,6 +103,7 @@ import java.io.FileDescriptor;
import
java.io.PrintWriter
;
import
java.util.List
;
import
java.util.Locale
;
import
java.util.Optional
;
/**
* Fragment containing the NavigationBarFragment. Contains logic for what happens
...
...
@@ -1109,8 +1110,11 @@ public class NavigationBarFragment extends Fragment implements Callbacks {
public
void
onActivityRequestedOrientationChanged
(
int
taskId
,
int
requestedOrientation
)
{
// Only hide the icon if the top task changes its requestedOrientation
// Launcher can alter its requestedOrientation while it's not on top, don't hide on this
final
boolean
top
=
ActivityManagerWrapper
.
getInstance
().
getRunningTask
().
id
==
taskId
;
if
(
top
)
setRotateSuggestionButtonState
(
false
);
Optional
.
ofNullable
(
ActivityManagerWrapper
.
getInstance
())
.
map
(
ActivityManagerWrapper:
:
getRunningTask
)
.
ifPresent
(
a
->
{
if
(
a
.
id
==
taskId
)
setRotateSuggestionButtonState
(
false
);
});
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment