Fix Launcher drop targets for App remove / uninstall / info

- make the code aware of the layout direction
- use start drawables
- fix animation drop rect

Change-Id: I35f01b9079aef418c0a22b39e32344c7bf5a0660
This commit is contained in:
Fabrice Di Meglio
2013-02-06 15:40:46 -08:00
parent 892d023c54
commit d6a33c6f34
3 changed files with 32 additions and 13 deletions

View File

@@ -154,9 +154,9 @@ public class DeleteDropTarget extends ButtonDropTarget {
}
if (isUninstall) {
setCompoundDrawablesWithIntrinsicBounds(mUninstallDrawable, null, null, null);
setCompoundDrawablesRelativeWithIntrinsicBounds(mUninstallDrawable, null, null, null);
} else {
setCompoundDrawablesWithIntrinsicBounds(mRemoveDrawable, null, null, null);
setCompoundDrawablesRelativeWithIntrinsicBounds(mRemoveDrawable, null, null, null);
}
mCurrentDrawable = (TransitionDrawable) getCurrentDrawable();