Messaging: Nullability

Change-Id: I8bcde2a868a9c8989971d056be24ff4986e4f8f3
This commit is contained in:
Michael W
2024-12-26 14:55:12 +01:00
parent e35d385149
commit c1b4aa4dfe
82 changed files with 372 additions and 120 deletions
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2015 The Android Open Source Project
* Copyright (C) 2024 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,6 +24,8 @@ import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import com.android.messaging.R;
import com.android.messaging.annotation.VisibleForAnimation;
import com.android.messaging.datamodel.data.ConversationMessageBubbleData;
@@ -104,11 +107,11 @@ public class ConversationMessageBubbleView extends LinearLayout {
mAnimator.setDuration(UiUtils.MEDIAPICKER_TRANSITION_DURATION);
mAnimator.addListener(new AnimatorListener() {
@Override
public void onAnimationStart(Animator animator) {
public void onAnimationStart(@NonNull Animator animator) {
}
@Override
public void onAnimationEnd(Animator animator) {
public void onAnimationEnd(@NonNull Animator animator) {
mAnimator = null;
mMorphedWidth = 0;
// Allow the bubble to resize if, for example, the status text changed during
@@ -120,11 +123,11 @@ public class ConversationMessageBubbleView extends LinearLayout {
}
@Override
public void onAnimationCancel(Animator animator) {
public void onAnimationCancel(@NonNull Animator animator) {
}
@Override
public void onAnimationRepeat(Animator animator) {
public void onAnimationRepeat(@NonNull Animator animator) {
}
});
mAnimator.start();