log language used to fabric
This commit is contained in:
parent
1b142d13d1
commit
97cc9a6370
|
@ -182,7 +182,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
|
||||
@Subscribe
|
||||
public void onStatusEvent(final EventRefreshGui ev) {
|
||||
String lang = SP.getString("language", "en");
|
||||
String lang = SP.getString(R.string.key_language, "en");
|
||||
LocaleHelper.setLocale(getApplicationContext(), lang);
|
||||
runOnUiThread(() -> {
|
||||
if (ev.recreate) {
|
||||
|
|
|
@ -110,6 +110,7 @@ public class FabricPrivacy {
|
|||
CustomEvent pluginStats = new CustomEvent("PluginStats");
|
||||
pluginStats.putCustomAttribute("version", BuildConfig.VERSION);
|
||||
pluginStats.putCustomAttribute("HEAD", BuildConfig.HEAD);
|
||||
pluginStats.putCustomAttribute("language", SP.getString(R.string.key_language,"default"));
|
||||
for (PluginBase plugin : MainApp.getPluginsList()) {
|
||||
if (!plugin.pluginDescription.alwaysEnabled) {
|
||||
if (plugin.isEnabled(plugin.getType()))
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<PreferenceCategory
|
||||
android:key="language"
|
||||
android:title="@string/configbuilder_general">
|
||||
|
||||
<ListPreference
|
||||
|
@ -9,6 +8,6 @@
|
|||
android:defaultValue="en"
|
||||
android:entries="@array/languagesArray"
|
||||
android:entryValues="@array/languagesValues"
|
||||
android:key="language" />
|
||||
android:key="@string/key_language" />
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
Loading…
Reference in a new issue