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) 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.
@@ -26,6 +27,8 @@ import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;
import androidx.annotation.NonNull;
import com.android.messaging.Factory;
import com.android.messaging.R;
import com.android.messaging.util.OsUtil;
@@ -101,8 +104,9 @@ public class PermissionCheckActivity extends Activity {
}
@Override
public void onRequestPermissionsResult(
final int requestCode, final String permissions[], final int[] grantResults) {
public void onRequestPermissionsResult(final int requestCode,
@NonNull final String permissions[],
@NonNull final int[] grantResults) {
if (requestCode == REQUIRED_PERMISSIONS_REQUEST_CODE) {
// We do not use grantResults as some of the granted permissions might have been
// revoked while the permissions dialog box was being shown for the missing permissions.