Skip to content

Commit

Permalink
Merge pull request RobotiumTech#31 from ilzar/master
Browse files Browse the repository at this point in the history
Fix java.lang.VerifyError
  • Loading branch information
renas committed Oct 17, 2012
2 parents 51faf63 + 45d3b82 commit 91f5bc6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import android.widget.ProgressBar;
import android.widget.SlidingDrawer;
import android.widget.TimePicker;
import android.widget.NumberPicker;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import android.widget.GridView;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.NumberPicker;
import android.widget.ProgressBar;
import android.widget.RadioButton;
import android.widget.ScrollView;
Expand Down Expand Up @@ -1812,8 +1811,17 @@ public ArrayList<TimePicker> getCurrentTimePickers() {
*
*/

public ArrayList<NumberPicker> getCurrentNumberPickers() {
return viewFetcher.getCurrentViews(NumberPicker.class);
@SuppressWarnings({ "rawtypes", "unchecked" })
public ArrayList getCurrentNumberPickers() {
try {
Class numberPickerClass = Class.forName("android.widget.NumberPicker");
if (numberPickerClass != null) {
return viewFetcher.getCurrentViews(numberPickerClass);
}
} catch(ClassNotFoundException cnfe) {
cnfe.printStackTrace();
}
return null;
}

/**
Expand Down

0 comments on commit 91f5bc6

Please sign in to comment.