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
@@ -29,6 +29,8 @@ import android.support.v7.mms.CarrierConfigValuesLoader;
import android.support.v7.mms.MmsManager;
import android.telephony.CarrierConfigManager;
import androidx.annotation.NonNull;
import com.android.messaging.datamodel.DataModel;
import com.android.messaging.receiver.SmsReceiver;
import com.android.messaging.sms.ApnDatabase;
@@ -69,7 +71,7 @@ public class BugleApplication extends Application implements UncaughtExceptionHa
}
@Override
public void onConfigurationChanged(final Configuration newConfig) {
public void onConfigurationChanged(@NonNull final Configuration newConfig) {
super.onConfigurationChanged(newConfig);
// Update conversation drawables when changing writing systems
@@ -160,7 +162,7 @@ public class BugleApplication extends Application implements UncaughtExceptionHa
}
@Override
public void uncaughtException(final Thread thread, final Throwable ex) {
public void uncaughtException(@NonNull final Thread thread, @NonNull final Throwable ex) {
final boolean background = getMainLooper().getThread() != thread;
if (background) {
LogUtil.e(TAG, "Uncaught exception in background thread " + thread, ex);