From e50678b1f87dab9b969b20530fc8111d463f2eb6 Mon Sep 17 00:00:00 2001 From: tehcneko <7764726+tehcneko@users.noreply.github.com> Date: Sun, 14 Feb 2021 13:44:33 +0800 Subject: [PATCH] [app] Suppress warnings --- .../io/github/lsposed/manager/Constants.java | 1 + .../manager/util/InsetsViewInflater.java | 43 ------------------- 2 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 app/src/main/java/io/github/lsposed/manager/util/InsetsViewInflater.java diff --git a/app/src/main/java/io/github/lsposed/manager/Constants.java b/app/src/main/java/io/github/lsposed/manager/Constants.java index 0a981850..852002a0 100644 --- a/app/src/main/java/io/github/lsposed/manager/Constants.java +++ b/app/src/main/java/io/github/lsposed/manager/Constants.java @@ -22,6 +22,7 @@ package io.github.lsposed.manager; import android.widget.Toast; +@SuppressWarnings({"FieldCanBeLocal", "FieldMayBeFinal", "unused"}) public class Constants { private static int xposedApiVersion = -1; private static String xposedVersion = null; diff --git a/app/src/main/java/io/github/lsposed/manager/util/InsetsViewInflater.java b/app/src/main/java/io/github/lsposed/manager/util/InsetsViewInflater.java deleted file mode 100644 index 4753f1e6..00000000 --- a/app/src/main/java/io/github/lsposed/manager/util/InsetsViewInflater.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of LSPosed. - * - * LSPosed is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * LSPosed is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with LSPosed. If not, see . - * - * Copyright (C) 2020 EdXposed Contributors - * Copyright (C) 2021 LSPosed Contributors - */ - -package io.github.lsposed.manager.util; - -import android.content.Context; -import android.util.AttributeSet; -import android.view.View; - -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.appcompat.app.AppCompatDelegate; - -import rikka.insets.WindowInsetsHelper; -import rikka.layoutinflater.view.LayoutInflaterFactory; - -public class InsetsViewInflater extends LayoutInflaterFactory { - public InsetsViewInflater(@NonNull AppCompatDelegate delegate) { - super(delegate); - } - - @Override - public void onViewCreated(@NonNull View view, @Nullable View parent, @NonNull String name, @NonNull Context context, @NonNull AttributeSet attrs) { - WindowInsetsHelper.attach(view, attrs); - } -}