Fix manual sharing #88
@ -11,6 +11,7 @@ import android.preference.Preference;
|
|||||||
import android.preference.PreferenceFragment;
|
import android.preference.PreferenceFragment;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
import android.util.DisplayMetrics;
|
import android.util.DisplayMetrics;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
|
||||||
import com.uam.wmi.findmytutor.R;
|
import com.uam.wmi.findmytutor.R;
|
||||||
@ -54,7 +55,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
|
|||||||
Preference languagesList = findPreference(getResources().getString(R.string.key_language));
|
Preference languagesList = findPreference(getResources().getString(R.string.key_language));
|
||||||
languagesList.setDefaultValue(0);
|
languagesList.setDefaultValue(0);
|
||||||
|
|
||||||
if(PrefUtils.getLocale(getActivity()).equals("pl")){
|
if(PrefUtils.getLocale(getActivity()).equals("1")){
|
||||||
languagesList.setDefaultValue(1);
|
languagesList.setDefaultValue(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
android:id="@android:id/text1"
|
android:id="@android:id/text1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceListItemSmall"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:textSize="16sp"
|
android:textSize="14sp"
|
||||||
|
android:paddingTop="2dp"
|
||||||
android:fontFamily="@font/lato_regular"
|
android:fontFamily="@font/lato_regular"
|
||||||
android:textColor="@color/mapboxWhite" />
|
android:textColor="@color/mapboxWhite" />
|
@ -7,7 +7,6 @@
|
|||||||
<PreferenceCategory android:title="@string/settings_category_general">
|
<PreferenceCategory android:title="@string/settings_category_general">
|
||||||
|
|
||||||
<ListPreference
|
<ListPreference
|
||||||
android:defaultValue="0"
|
|
||||||
android:dialogTitle="@string/settings_language"
|
android:dialogTitle="@string/settings_language"
|
||||||
android:entries="@array/language_entries"
|
android:entries="@array/language_entries"
|
||||||
android:entryValues="@array/language_values"
|
android:entryValues="@array/language_values"
|
||||||
|
@ -147,6 +147,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingLeft="25dp"
|
android:paddingLeft="25dp"
|
||||||
android:paddingTop="-10dp"
|
android:paddingTop="-10dp"
|
||||||
|
android:divider="@color/background_user_modal"
|
||||||
|
android:dividerHeight="1dp"
|
||||||
android:textColor="@color/mapboxWhite"
|
android:textColor="@color/mapboxWhite"
|
||||||
/>
|
/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
<string name="assembly_c">Skrzydło C</string>
|
<string name="assembly_c">Skrzydło C</string>
|
||||||
<string name="passage_d">ŁącznikD</string>
|
<string name="passage_d">ŁącznikD</string>
|
||||||
|
|
||||||
<string name="key_language">key_language</string>
|
<string name="key_language">LOCALE</string>
|
||||||
<string name="title_activity_settings2">Ustawienia</string>
|
<string name="title_activity_settings2">Ustawienia</string>
|
||||||
|
|
||||||
<!-- Example General settings -->
|
<!-- Example General settings -->
|
||||||
@ -121,7 +121,7 @@
|
|||||||
<string name="prompt_login">Login (Ldap)</string>
|
<string name="prompt_login">Login (Ldap)</string>
|
||||||
<string name="action_log_in">Zaloguj!</string>
|
<string name="action_log_in">Zaloguj!</string>
|
||||||
<string name="error_invalid_login_name">Niepoprawny format loginu.</string>
|
<string name="error_invalid_login_name">Niepoprawny format loginu.</string>
|
||||||
<string name="user_list_nav">Lista użytkowników</string>
|
<string name="user_list_nav">Kadra</string>
|
||||||
<string name="select_a_location">Wybierz lokalizacje</string>
|
<string name="select_a_location">Wybierz lokalizacje</string>
|
||||||
<string name="user_location_permission_not_granted">Nie dodano uprawnień do lokalizacji.</string>
|
<string name="user_location_permission_not_granted">Nie dodano uprawnień do lokalizacji.</string>
|
||||||
<string name="user_location_permission_explanation">Ta aplikacja potrzebuje uprawnień do lokalizacji.</string>
|
<string name="user_location_permission_explanation">Ta aplikacja potrzebuje uprawnień do lokalizacji.</string>
|
||||||
|
@ -109,7 +109,7 @@
|
|||||||
<string name="lang_eng">English</string>
|
<string name="lang_eng">English</string>
|
||||||
<string name="lang_pol">Polish</string>
|
<string name="lang_pol">Polish</string>
|
||||||
<string name="settings_language">Choose language</string>
|
<string name="settings_language">Choose language</string>
|
||||||
<string name="key_language">key_language</string>
|
<string name="key_language">LOCALE</string>
|
||||||
|
|
||||||
|
|
||||||
<string name="pref_header_about">About</string>
|
<string name="pref_header_about">About</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user