Skip to content

Commit

Permalink
SPUTDI TINKERING
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander James Wallar committed Jan 21, 2014
1 parent edd4564 commit e19de72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/Locabean/src/com/locaudio/functional/UIFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

import android.app.Activity;

public abstract class UIFunction<T, R> extends Function<T, R> {
public abstract class UIFunction<T> extends Function<T, Void> {

private Activity activity;

public UIFunction(Activity activity) {
this.activity = activity;
}

public abstract R body(T input);
public abstract Void body(T input);

public R call(final T input) {
public Void call(final T input) {
this.activity.runOnUiThread(new Runnable() {
@Override
public void run() {
Expand Down
2 changes: 1 addition & 1 deletion app/Locabean/src/com/locaudio/locabean/NodeActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void onClick(View v) {
postForm.setY(0);

locaudio.notifyEvent(postForm,
new UIFunction<NotifyResponse, Void>(self) {
new UIFunction<NotifyResponse>(self) {

@Override
public Void body(NotifyResponse nr) {
Expand Down

0 comments on commit e19de72

Please sign in to comment.