diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2022-10-12 00:38:50 +0300 |
---|---|---|
committer | Marcel Hibbe (Rebase PR Action) <mahibi@users.noreply.github.com> | 2022-10-12 22:29:03 +0300 |
commit | 08fb0030ecbb19cceb2e98bfdbbe5cdf00884c71 (patch) | |
tree | 7f66a2d0e4826b5550c76c1c47ea8c6186425068 /app/src | |
parent | 1f1d40e5e6a4bd7891fba1d9aaf6492e1beb64b7 (diff) |
codacy: unnecessary use of fully qualified name
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java | 6 | ||||
-rw-r--r-- | app/src/main/java/com/nextcloud/talk/utils/DisplayUtils.java | 16 |
2 files changed, 10 insertions, 12 deletions
diff --git a/app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java b/app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java index 66cbd6c0a..e07491dc1 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java +++ b/app/src/main/java/com/nextcloud/talk/activities/CallNotificationActivity.java @@ -283,12 +283,12 @@ public class CallNotificationActivity extends CallBaseActivity { .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Observer<RoomOverall>() { @Override - public void onSubscribe(@io.reactivex.annotations.NonNull Disposable d) { + public void onSubscribe(@NonNull Disposable d) { disposablesList.add(d); } @Override - public void onNext(@io.reactivex.annotations.NonNull RoomOverall roomOverall) { + public void onNext(@NonNull RoomOverall roomOverall) { currentConversation = roomOverall.getOcs().getData(); setUpAfterConversationIsKnown(); @@ -311,7 +311,7 @@ public class CallNotificationActivity extends CallBaseActivity { } @Override - public void onError(@io.reactivex.annotations.NonNull Throwable e) { + public void onError(@NonNull Throwable e) { Log.e(TAG, e.getMessage(), e); } diff --git a/app/src/main/java/com/nextcloud/talk/utils/DisplayUtils.java b/app/src/main/java/com/nextcloud/talk/utils/DisplayUtils.java index 24f8b2e11..cb363337d 100644 --- a/app/src/main/java/com/nextcloud/talk/utils/DisplayUtils.java +++ b/app/src/main/java/com/nextcloud/talk/utils/DisplayUtils.java @@ -215,34 +215,32 @@ public class DisplayUtils { return new ControllerListener() { @Override public void onSubmit(String id, Object callerContext) { - + // unused atm } @Override - public void onFinalImageSet(String id, - @androidx.annotation.Nullable Object imageInfo, - @androidx.annotation.Nullable Animatable animatable) { + public void onFinalImageSet(String id, @Nullable Object imageInfo, @Nullable Animatable animatable) { updateViewSize((ImageInfo) imageInfo, draweeView); } @Override - public void onIntermediateImageSet(String id, @androidx.annotation.Nullable Object imageInfo) { + public void onIntermediateImageSet(String id, @Nullable Object imageInfo) { updateViewSize((ImageInfo) imageInfo, draweeView); } @Override public void onIntermediateImageFailed(String id, Throwable throwable) { - + // unused atm } @Override public void onFailure(String id, Throwable throwable) { - + // unused atm } @Override public void onRelease(String id) { - + // unused atm } }; } @@ -659,7 +657,7 @@ public class DisplayUtils { public static CharSequence getRelativeTimestamp(Context context, long modificationTimestamp, boolean showFuture) { return getRelativeDateTimeString(context, modificationTimestamp, - android.text.format.DateUtils.SECOND_IN_MILLIS, + DateUtils.SECOND_IN_MILLIS, DateUtils.WEEK_IN_MILLIS, 0, showFuture); |