mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 13:45:27 +00:00
Bug 943915 - Small cleanup on the use of Resources in ArrowPopup (r=wesj)
This commit is contained in:
parent
5647ce541f
commit
875b68032b
@ -9,6 +9,7 @@ import org.mozilla.gecko.GeckoApp;
|
||||
import org.mozilla.gecko.R;
|
||||
import org.mozilla.gecko.util.HardwareUtils;
|
||||
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.drawable.BitmapDrawable;
|
||||
import android.os.Build;
|
||||
import android.view.Gravity;
|
||||
@ -39,8 +40,9 @@ public class ArrowPopup extends PopupWindow {
|
||||
|
||||
mInflated = false;
|
||||
|
||||
mArrowWidth = aActivity.getResources().getDimensionPixelSize(R.dimen.menu_popup_arrow_width);
|
||||
mYOffset = aActivity.getResources().getDimensionPixelSize(R.dimen.menu_popup_offset);
|
||||
final Resources res = aActivity.getResources();
|
||||
mArrowWidth = res.getDimensionPixelSize(R.dimen.menu_popup_arrow_width);
|
||||
mYOffset = res.getDimensionPixelSize(R.dimen.menu_popup_offset);
|
||||
|
||||
setAnimationStyle(R.style.PopupAnimation);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user