Fix 3493373: back button displays blue homescreen borders
When the back button has no other function, briefly turn on the page borders to give the user some feedback on the button press. Change-Id: I31cd4391821b646dffe4e8146fbffd72d934a00f
This commit is contained in:
1 parent
60b753b4cf
commit
94f78a5c44
2 files changed
+20
-6
No files matched your search
@@ -892,7 +892,7 @@ public class Workspace extends SmoothPagedView
|
||||
}
|
||||
}
|
||||
|
||||
public void showOutlines() {
|
||||
void showOutlines() {
|
||||
if (!mIsSmall && !mIsInUnshrinkAnimation) {
|
||||
if (mChildrenOutlineFadeOutAnimation != null) mChildrenOutlineFadeOutAnimation.cancel();
|
||||
if (mChildrenOutlineFadeInAnimation != null) mChildrenOutlineFadeInAnimation.cancel();
|
||||
@@ -902,7 +902,7 @@ public class Workspace extends SmoothPagedView
|
||||
}
|
||||
}
|
||||
|
||||
public void hideOutlines() {
|
||||
void hideOutlines() {
|
||||
if (!mIsSmall && !mIsInUnshrinkAnimation) {
|
||||
if (mChildrenOutlineFadeInAnimation != null) mChildrenOutlineFadeInAnimation.cancel();
|
||||
if (mChildrenOutlineFadeOutAnimation != null) mChildrenOutlineFadeOutAnimation.cancel();
|
||||
@@ -913,6 +913,12 @@ public class Workspace extends SmoothPagedView
|
||||
}
|
||||
}
|
||||
|
||||
public void showOutlinesTemporarily() {
|
||||
if (!mIsPageMoving && !isTouchActive()) {
|
||||
snapToPage(mCurrentPage);
|
||||
}
|
||||
}
|
||||
|
||||
public void setChildrenOutlineAlpha(float alpha) {
|
||||
mChildrenOutlineAlpha = alpha;
|
||||
for (int i = 0; i < getChildCount(); i++) {
|
||||
|
||||
Reference in new issue
Block a user