Skip to content

Commit

Permalink
Merge branch 'refs/heads/sdl_android_parent/hotfix' into sdl_android_…
Browse files Browse the repository at this point in the history
…parent/master
  • Loading branch information
Mike Burke committed Oct 23, 2014
2 parents e05905c + e79f015 commit 8c1c468
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void setPowerModeActive(Boolean powerModeActive) {
public Boolean getPowerModeActive() {
return (Boolean) store.get(Names.powerModeActive);
}
public void setPowerModeQualificationStatus(Names powerModeQualificationStatus) {
public void setPowerModeQualificationStatus(PowerModeQualificationStatus powerModeQualificationStatus) {
if (powerModeQualificationStatus != null) {
store.put(Names.powerModeQualificationStatus, powerModeQualificationStatus);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ public void setTextFields( Vector<TextField> textFields ) {



public Vector<TextField> getImageFields() {
public Vector<ImageField> getImageFields() {
if (store.get(Names.imageFields) instanceof Vector<?>) {
Vector<?> list = (Vector<?>)store.get(Names.imageFields);
if (list != null && list.size() > 0) {
Object obj = list.get(0);
if (obj instanceof TextField) {
return (Vector<TextField>) list;
if (obj instanceof ImageField) {
return (Vector<ImageField>) list;
} else if (obj instanceof Hashtable) {
Vector<TextField> newList = new Vector<TextField>();
Vector<ImageField> newList = new Vector<ImageField>();
for (Object hashObj : list) {
newList.add(new TextField((Hashtable)hashObj));
newList.add(new ImageField((Hashtable)hashObj));
}
return newList;
}
Expand All @@ -143,7 +143,7 @@ public Vector<TextField> getImageFields() {
return null;
}

public void setImageFields( Vector<TextField> imageFields ) {
public void setImageFields( Vector<ImageField> imageFields ) {
if (imageFields != null) {
store.put(Names.imageFields, imageFields );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public void setSecondaryGraphic(Image secondaryGraphic) {
}


public Image setSecondaryGraphic() {
public Image getSecondaryGraphic() {
Object obj = parameters.get(Names.secondaryGraphic);
if (obj instanceof Image) {
return (Image) obj;
Expand Down

0 comments on commit 8c1c468

Please sign in to comment.