Skip to content

Commit

Permalink
Add NonNull
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT authored Feb 22, 2024
1 parent e6659bc commit f6b6c18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/src/main/java/io/github/chipppppppppp/lime/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import android.graphics.Canvas;
import android.net.Uri;
import android.os.Process;
import android.support.annotation.NonNull;
import android.support.customtabs.CustomTabsIntent;
import android.view.Gravity;
import android.view.View;
Expand Down Expand Up @@ -66,7 +67,7 @@ public class Main implements IXposedHookLoadPackage, IXposedHookInitPackageResou
public LimeOptions limeOptions = new LimeOptions();
public boolean keepUnread = false;

public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lparam) throws Throwable {
public void handleLoadPackage(@NonNull XC_LoadPackage.LoadPackageParam lparam) throws Throwable {
if (!lparam.packageName.equals(PACKAGE)) return;

final XSharedPreferences xModulePrefs = new XSharedPreferences(MODULE, "options");
Expand Down Expand Up @@ -457,7 +458,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
}

@Override
public void handleInitPackageResources(XC_InitPackageResources.InitPackageResourcesParam resparam) throws Throwable {
public void handleInitPackageResources(@NonNull XC_InitPackageResources.InitPackageResourcesParam resparam) throws Throwable {
if (!resparam.packageName.equals(PACKAGE)) return;

if (limeOptions.deleteIconLabels.checked) {
Expand All @@ -475,7 +476,7 @@ public void handleLayoutInflated(XC_LayoutInflated.LayoutInflatedParam liparam)
}

@Override
public void initZygote(StartupParam startupParam) throws Throwable {
public void initZygote(@NonNull StartupParam startupParam) throws Throwable {
MODULE_PATH = startupParam.modulePath;
}
}

0 comments on commit f6b6c18

Please sign in to comment.