|
|
|
@ -244,12 +244,16 @@ public abstract class QuickActionWidget extends PopupWindow {
|
|
|
|
prepareAnimationStyle();
|
|
|
|
prepareAnimationStyle();
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
showAtLocation(anchor, Gravity.NO_GRAVITY, mRect.left, mPopupY);
|
|
|
|
showAtLocation(anchor, Gravity.NO_GRAVITY, getShowAtX(), mPopupY);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
Log.w("quick-action-show", e);
|
|
|
|
Log.w("quick-action-show", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected int getShowAtX() {
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected void clearQuickActions() {
|
|
|
|
protected void clearQuickActions() {
|
|
|
|
if (!mQuickActions.isEmpty()) {
|
|
|
|
if (!mQuickActions.isEmpty()) {
|
|
|
|
onClearQuickActions();
|
|
|
|
onClearQuickActions();
|
|
|
|
|