Skip to content

Commit

Permalink
* Make ruboto/toast independent of ruboto/base.
Browse files Browse the repository at this point in the history
  • Loading branch information
donv committed Jun 2, 2014
1 parent ed38f62 commit 5e187bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/src/ruboto/util/toast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#######################################################

Java::android.content.Context.class_eval do
def toast(text, duration=android.widget.Toast::LENGTH_SHORT)
def toast(text, duration=Java::android.widget.Toast::LENGTH_SHORT)
Java::android.widget.Toast.makeText(self, text, duration).show
end

def toast_result(result, success, failure, duration=android.widget.Toast::LENGTH_SHORT)
def toast_result(result, success, failure, duration=Java::android.widget.Toast::LENGTH_SHORT)
toast(result ? success : failure, duration)
end
end
Expand Down

0 comments on commit 5e187bd

Please sign in to comment.