Skip to content

Commit

Permalink
merged in fix for wrong initialization: RaghavSood#10
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Rasim@gucky committed Nov 24, 2014
1 parent 0161a63 commit 553ecd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CircularSeekBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* @version 1
* @date 26 January, 2013
*/
package com.appaholics.circularseekbar;
package de.ips.main.view.component;

import de.ips.mobile.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
Expand Down Expand Up @@ -227,8 +228,8 @@ public void initDrawable() {
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);

width = getWidth(); // Get View Width
height = getHeight();// Get View Height
width = View.MeasureSpec.getSize(widthMeasureSpec);
height = View.MeasureSpec.getSize(heightMeasureSpec);

int size = (width > height) ? height : width; // Choose the smaller
// between width and
Expand Down

0 comments on commit 553ecd8

Please sign in to comment.