Merge "VIMS: Clarify NonNullability of PackageMonitor#onPackageModified." into sc-dev

This commit is contained in:
Ahaan Ugale
2021-02-03 02:57:18 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
package com.android.internal.content;
import android.annotation.NonNull;
import android.app.Activity;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.Context;
@@ -234,7 +235,7 @@ public abstract class PackageMonitor extends android.content.BroadcastReceiver {
/**
* Called when an existing package is updated or its disabled state changes.
*/
public void onPackageModified(String packageName) {
public void onPackageModified(@NonNull String packageName) {
}
public boolean didSomePackagesChange() {

View File

@@ -1782,7 +1782,7 @@ public class VoiceInteractionManagerService extends SystemService {
}
@Override
public void onPackageModified(String pkgName) {
public void onPackageModified(@NonNull String pkgName) {
// If the package modified is not in the current user, then don't bother making
// any changes as we are going to do any initialization needed when we switch users.
if (mCurUser != getChangingUserId()) {