Prevent DebuggingPreferencesFragment and TerminalIOPreferencesFragment from being removed during minification

Fixes #2005
This commit is contained in:
agnostic-apollo 2021-04-15 02:15:55 +05:00
parent 354fe1948e
commit cde0bd2246
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package com.termux.app.fragments.settings;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Keep;
import androidx.annotation.Nullable;
import androidx.preference.ListPreference;
import androidx.preference.PreferenceCategory;
@ -14,6 +15,7 @@ import com.termux.R;
import com.termux.shared.settings.preferences.TermuxAppSharedPreferences;
import com.termux.shared.logger.Logger;
@Keep
public class DebuggingPreferencesFragment extends PreferenceFragmentCompat {
@Override

View File

@ -3,6 +3,7 @@ package com.termux.app.fragments.settings;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Keep;
import androidx.preference.PreferenceDataStore;
import androidx.preference.PreferenceFragmentCompat;
import androidx.preference.PreferenceManager;
@ -10,6 +11,7 @@ import androidx.preference.PreferenceManager;
import com.termux.R;
import com.termux.shared.settings.preferences.TermuxAppSharedPreferences;
@Keep
public class TerminalIOPreferencesFragment extends PreferenceFragmentCompat {
@Override