Github user therajanmaurya commented on a diff in the pull request:
https://github.com/apache/incubator-taverna-mobile/pull/56#discussion_r169132417
--- Diff:
app/src/main/java/org/apache/taverna/mobile/data/local/PreferencesHelper.java
---
@@ -155,9 +158,15 @@ private void setUserAvatar(String userAvatar) {
}
public Observable<User> saveUserDetail(final User user) {
- return Observable.defer(new Func0<Observable<User>>() {
+ return Observable.defer(new Callable<ObservableSource<? extends
User>>() {
+ /**
+ * Computes a result, or throws an exception if unable to do
so.
+ *
+ * @return computed result
+ * @throws Exception if unable to compute a result
+ */
--- End diff --
Please change the return type in the comment.
---