Update strings (#2280)
This commit is contained in:
parent
fdff7f5aad
commit
abda39bcba
|
|
@ -156,7 +156,7 @@ public class HomeFragment extends BaseFragment {
|
|||
|
||||
if (ConfigManager.isBinderAlive()) {
|
||||
binding.apiVersion.setText(String.valueOf(ConfigManager.getXposedApiVersion()));
|
||||
binding.api.setText(ConfigManager.getApi());
|
||||
binding.api.setText(ConfigManager.isDexObfuscateEnabled() ? R.string.enabled : R.string.not_enabled);
|
||||
binding.frameworkVersion.setText(String.format(LocaleDelegate.getDefaultLocale(), "%1$s (%2$d)", ConfigManager.getXposedVersionName(), ConfigManager.getXposedVersionCode()));
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
|
||||
binding.dex2oatWrapper.setText(String.format(LocaleDelegate.getDefaultLocale(), "%s (%s)", getString(R.string.unsupported), getString(R.string.android_version_unsatisfied)));
|
||||
|
|
@ -196,7 +196,7 @@ public class HomeFragment extends BaseFragment {
|
|||
"\n" +
|
||||
binding.apiVersion.getText() +
|
||||
"\n\n" +
|
||||
activity.getString(R.string.info_api) +
|
||||
activity.getString(R.string.settings_xposed_api_call_protection) +
|
||||
"\n" +
|
||||
binding.api.getText() +
|
||||
"\n\n" +
|
||||
|
|
|
|||
|
|
@ -175,10 +175,18 @@ public class SettingsFragment extends BaseFragment {
|
|||
Preference shortcut = findPreference("add_shortcut");
|
||||
if (shortcut != null) {
|
||||
shortcut.setVisible(App.isParasitic());
|
||||
if (ShortcutUtil.isLaunchShortcutPinned()) {
|
||||
shortcut.setEnabled(false);
|
||||
shortcut.setSummary(R.string.settings_created_shortcut_summary);
|
||||
} else {
|
||||
shortcut.setEnabled(true);
|
||||
shortcut.setSummary(R.string.settings_create_shortcut_summary);
|
||||
}
|
||||
shortcut.setEnabled(!ShortcutUtil.isLaunchShortcutPinned());
|
||||
shortcut.setOnPreferenceClickListener(preference -> {
|
||||
ShortcutUtil.requestPinLaunchShortcut(() -> {
|
||||
shortcut.setEnabled(false);
|
||||
shortcut.setSummary(R.string.settings_created_shortcut_summary);
|
||||
if (notification != null) {
|
||||
notification.setEnabled(true);
|
||||
notification.setSummaryOn(R.string.settings_enable_status_notification_summary);
|
||||
|
|
|
|||
|
|
@ -244,7 +244,7 @@
|
|||
style="@style/DeviceInfoDialogLabel"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/info_api" />
|
||||
android:text="@string/settings_xposed_api_call_protection" />
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/api"
|
||||
|
|
|
|||
|
|
@ -64,8 +64,9 @@
|
|||
<string name="info_system_version">System version</string>
|
||||
<string name="info_device">Device</string>
|
||||
<string name="info_system_abi">System ABI</string>
|
||||
<string name="info_api">Injection Interface</string>
|
||||
<string name="info_dex2oat_wrapper">Dex Optimizer Wrapper</string>
|
||||
<string name="enabled">Enabled</string>
|
||||
<string name="not_enabled">Not enabled</string>
|
||||
<string name="supported">Supported</string>
|
||||
<string name="unsupported">Unsupported</string>
|
||||
<string name="android_version_unsatisfied">Android version unsatisfied</string>
|
||||
|
|
@ -170,7 +171,8 @@
|
|||
|
||||
<!-- SettingsActivity -->
|
||||
<string name="settings_group_framework">Framework</string>
|
||||
<string name="pref_title_disable_verbose_log">Disable verbose logs</string>
|
||||
<string name="settings_disable_verbose_log">Disable verbose logs</string>
|
||||
<string name="settings_disable_verbose_log_summary">Report issues request to include verbose logs</string>
|
||||
<string name="pure_black_dark_theme">Black dark theme</string>
|
||||
<string name="pure_black_dark_theme_summary">Use the pure black theme if dark theme is enabled</string>
|
||||
<string name="settings_group_theme">Theme</string>
|
||||
|
|
@ -194,7 +196,8 @@
|
|||
<string name="settings_translation_contributors">Translation contributors</string>
|
||||
<string name="settings_translation">Participate in translation</string>
|
||||
<string name="settings_translation_summary">Help us translate %s into your language</string>
|
||||
<string name="create_shortcut_summary">Manually create parasitic manager shortcut</string>
|
||||
<string name="settings_create_shortcut_summary">Create a shortcut that can open parasitic manager</string>
|
||||
<string name="settings_created_shortcut_summary">A shortcut has been created to open parasitic manager</string>
|
||||
<string name="settings_enable_status_notification">Status Notification</string>
|
||||
<string name="settings_enable_status_notification_summary">Show a notification that can open parasitic manager</string>
|
||||
<string name="disable_status_notification_error">No shortcut, cannot disable notification</string>
|
||||
|
|
@ -202,8 +205,8 @@
|
|||
<string name="update_channel_stable">Stable</string>
|
||||
<string name="update_channel_bate">Beta</string>
|
||||
<string name="update_channel_nightly">Nightly build</string>
|
||||
<string name="pref_title_restrict_classloader">Only module classloader can use Xposed API</string>
|
||||
<string name="pref_summary_restrict_classloader">This may break some modules but benefit security (experimental feature)</string>
|
||||
<string name="settings_xposed_api_call_protection">Xposed API call protection</string>
|
||||
<string name="settings_xposed_api_call_protection_summary">Block dynamically loaded module code to use Xposed API, this may break some modules but benefit security (experimental feature)</string>
|
||||
|
||||
<!-- Module Repo -->
|
||||
<string name="module_readme">Readme</string>
|
||||
|
|
|
|||
|
|
@ -88,20 +88,21 @@
|
|||
android:icon="@drawable/ic_outline_assignment_24"
|
||||
android:key="disable_verbose_log"
|
||||
android:persistent="false"
|
||||
android:title="@string/pref_title_disable_verbose_log" />
|
||||
android:title="@string/settings_disable_verbose_log"
|
||||
android:summary="@string/settings_disable_verbose_log_summary"/>
|
||||
|
||||
<rikka.material.preference.MaterialSwitchPreference
|
||||
android:defaultValue="true"
|
||||
android:icon="@drawable/ic_outline_shield_24"
|
||||
android:key="enable_dex_obfuscate"
|
||||
android:persistent="false"
|
||||
android:title="@string/pref_title_restrict_classloader"
|
||||
android:summary="@string/pref_summary_restrict_classloader"/>
|
||||
android:title="@string/settings_xposed_api_call_protection"
|
||||
android:summary="@string/settings_xposed_api_call_protection_summary"/>
|
||||
|
||||
<Preference
|
||||
android:icon="@drawable/ic_outline_app_shortcut_24"
|
||||
android:key="add_shortcut"
|
||||
android:summary="@string/create_shortcut_summary"
|
||||
android:summary="@string/settings_create_shortcut_summary"
|
||||
android:title="@string/create_shortcut" />
|
||||
|
||||
<rikka.material.preference.MaterialSwitchPreference
|
||||
|
|
|
|||
Loading…
Reference in New Issue