Merge "Fix up GlowPadView attributes" into jb-mr1-lockscreen-dev

This commit is contained in:
Adam Powell
2012-10-23 21:54:42 -07:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 4 deletions

View File

@@ -256,11 +256,8 @@ public class GlowPadView extends View {
setDirectionDescriptionsResourceId(resourceId);
}
a.recycle();
mGravity = a.getInt(R.styleable.GlowPadView_gravity, Gravity.TOP);
// Use gravity attribute from LinearLayout
a = context.obtainStyledAttributes(attrs, android.R.styleable.LinearLayout);
mGravity = a.getInt(android.R.styleable.LinearLayout_gravity, Gravity.TOP);
a.recycle();
setVibrateEnabled(mVibrationDuration > 0);

View File

@@ -5464,6 +5464,8 @@
<!-- Used when the handle shouldn't wait to be hit before following the finger -->
<attr name="alwaysTrackFinger"/>
<attr name="gravity" />
</declare-styleable>
<!-- =============================== -->