Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
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
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
9a36fccd
Commit
9a36fccd
authored
1 year ago
by
Mady Mellor
Committed by
Android (Google) Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "Add some logging around app bubbles to help debug issues" into main
parents
e9b7de46
7d0a192a
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
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java
+5
-0
5 additions, 0 deletions
...ll/src/com/android/wm/shell/bubbles/BubbleController.java
with
5 additions
and
0 deletions
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java
+
5
−
0
View file @
9a36fccd
...
...
@@ -1249,6 +1249,7 @@ public class BubbleController implements ConfigurationChangeListener,
}
String
appBubbleKey
=
Bubble
.
getAppBubbleKeyForApp
(
intent
.
getPackage
(),
user
);
Log
.
v
(
TAG
,
"showOrHideAppBubble, with key: "
+
appBubbleKey
);
PackageManager
packageManager
=
getPackageManagerForUser
(
mContext
,
user
.
getIdentifier
());
if
(!
isResizableActivity
(
intent
,
packageManager
,
appBubbleKey
))
return
;
...
...
@@ -1258,18 +1259,22 @@ public class BubbleController implements ConfigurationChangeListener,
if
(
isStackExpanded
())
{
if
(
selectedBubble
!=
null
&&
appBubbleKey
.
equals
(
selectedBubble
.
getKey
()))
{
// App bubble is expanded, lets collapse
Log
.
v
(
TAG
,
" showOrHideAppBubble, selected bubble is app bubble, collapsing"
);
collapseStack
();
}
else
{
// App bubble is not selected, select it
Log
.
v
(
TAG
,
" showOrHideAppBubble, expanded, selecting existing app bubble"
);
mBubbleData
.
setSelectedBubble
(
existingAppBubble
);
}
}
else
{
// App bubble is not selected, select it & expand
Log
.
v
(
TAG
,
" showOrHideAppBubble, expand and select existing app bubble"
);
mBubbleData
.
setSelectedBubble
(
existingAppBubble
);
mBubbleData
.
setExpanded
(
true
);
}
}
else
{
// App bubble does not exist, lets add and expand it
Log
.
v
(
TAG
,
" showOrHideAppBubble, creating and expanding app bubble"
);
Bubble
b
=
Bubble
.
createAppBubble
(
intent
,
user
,
icon
,
mMainExecutor
);
b
.
setShouldAutoExpand
(
true
);
inflateAndAdd
(
b
,
/* suppressFlyout= */
true
,
/* showInShade= */
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