|
@@ -121,8 +121,8 @@ public class ProfileController extends BaseController {
|
|
|
super();
|
|
|
}
|
|
|
|
|
|
- @NotNull
|
|
|
- protected View inflateView(@NotNull LayoutInflater inflater, @NotNull ViewGroup container) {
|
|
|
+ @NonNull
|
|
|
+ protected View inflateView(@NonNull LayoutInflater inflater, @NonNull ViewGroup container) {
|
|
|
return inflater.inflate(R.layout.controller_profile, container, false);
|
|
|
}
|
|
|
|
|
@@ -272,17 +272,17 @@ public class ProfileController extends BaseController {
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
|
.subscribe(new Observer<UserProfileOverall>() {
|
|
|
@Override
|
|
|
- public void onSubscribe(@NotNull Disposable d) {
|
|
|
+ public void onSubscribe(@io.reactivex.annotations.NonNull Disposable d) {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onNext(@NotNull UserProfileOverall userProfileOverall) {
|
|
|
+ public void onNext(@io.reactivex.annotations.NonNull UserProfileOverall userProfileOverall) {
|
|
|
userInfo = userProfileOverall.getOcs().getData();
|
|
|
showUserProfile();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onError(@NotNull Throwable e) {
|
|
|
+ public void onError(@io.reactivex.annotations.NonNull Throwable e) {
|
|
|
setErrorMessageForMultiList(
|
|
|
getActivity().getString(R.string.userinfo_no_info_headline),
|
|
|
getActivity().getString(R.string.userinfo_error_text),
|
|
@@ -348,11 +348,11 @@ public class ProfileController extends BaseController {
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
|
.subscribe(new Observer<UserProfileFieldsOverall>() {
|
|
|
@Override
|
|
|
- public void onSubscribe(@NotNull Disposable d) {
|
|
|
+ public void onSubscribe(@io.reactivex.annotations.NonNull Disposable d) {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onNext(@NotNull UserProfileFieldsOverall userProfileFieldsOverall) {
|
|
|
+ public void onNext(@io.reactivex.annotations.NonNull UserProfileFieldsOverall userProfileFieldsOverall) {
|
|
|
editableFields = userProfileFieldsOverall.getOcs().getData();
|
|
|
|
|
|
getActivity().invalidateOptionsMenu();
|
|
@@ -360,7 +360,7 @@ public class ProfileController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onError(@NotNull Throwable e) {
|
|
|
+ public void onError(@io.reactivex.annotations.NonNull Throwable e) {
|
|
|
edit = false;
|
|
|
}
|
|
|
|
|
@@ -451,11 +451,11 @@ public class ProfileController extends BaseController {
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
|
.subscribe(new Observer<GenericOverall>() {
|
|
|
@Override
|
|
|
- public void onSubscribe(@NotNull Disposable d) {
|
|
|
+ public void onSubscribe(@io.reactivex.annotations.NonNull Disposable d) {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onNext(@NotNull GenericOverall userProfileOverall) {
|
|
|
+ public void onNext(@io.reactivex.annotations.NonNull GenericOverall userProfileOverall) {
|
|
|
Log.d(TAG, "Successfully saved: " + item.text + " as " + item.field);
|
|
|
|
|
|
if (item.field == Field.DISPLAYNAME) {
|
|
@@ -464,7 +464,7 @@ public class ProfileController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onError(@NotNull Throwable e) {
|
|
|
+ public void onError(@io.reactivex.annotations.NonNull Throwable e) {
|
|
|
item.text = userInfo.getValueByField(item.field);
|
|
|
Toast.makeText(getApplicationContext(),
|
|
|
String.format(getResources().getString(R.string.failed_to_save),
|
|
@@ -601,16 +601,16 @@ public class ProfileController extends BaseController {
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
|
.subscribe(new Observer<GenericOverall>() {
|
|
|
@Override
|
|
|
- public void onSubscribe(@NotNull Disposable d) {
|
|
|
+ public void onSubscribe(@io.reactivex.annotations.NonNull Disposable d) {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onNext(@NotNull GenericOverall genericOverall) {
|
|
|
+ public void onNext(@io.reactivex.annotations.NonNull GenericOverall genericOverall) {
|
|
|
DisplayUtils.loadAvatarImage(currentUser, getActivity().findViewById(R.id.avatar_image), true);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onError(@NotNull Throwable e) {
|
|
|
+ public void onError(@io.reactivex.annotations.NonNull Throwable e) {
|
|
|
Toast.makeText(getApplicationContext(), "Error", Toast.LENGTH_LONG).show();
|
|
|
}
|
|
|
|
|
@@ -633,16 +633,16 @@ public class ProfileController extends BaseController {
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
|
.subscribe(new Observer<GenericOverall>() {
|
|
|
@Override
|
|
|
- public void onSubscribe(@NotNull Disposable d) {
|
|
|
+ public void onSubscribe(@io.reactivex.annotations.NonNull Disposable d) {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onNext(@NotNull GenericOverall userProfileOverall) {
|
|
|
+ public void onNext(@io.reactivex.annotations.NonNull GenericOverall userProfileOverall) {
|
|
|
Log.d(TAG, "Successfully saved: " + item.scope + " as " + item.field);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onError(@NotNull Throwable e) {
|
|
|
+ public void onError(@io.reactivex.annotations.NonNull Throwable e) {
|
|
|
item.scope = userInfo.getScopeByField(item.field);
|
|
|
Log.e(TAG, "Failed to saved: " + item.scope + " as " + item.field, e);
|
|
|
}
|