Skip to content

Commit

Permalink
Remove "Force English language" setting
Browse files Browse the repository at this point in the history
  • Loading branch information
MizzleDK committed Jan 31, 2016
1 parent b594c68 commit b809478
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/com/miz/functions/PreferenceKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ private PreferenceKeys() {} // No instantiation
public static final String SORTING_MOVIES = "prefsSorting";
public static final String SORTING_TVSHOWS = "prefsSortingTv";
public static final String STARTUP_SELECTION = "prefsStartup";
public static final String USE_ENGLISH_LANGUAGE = "prefsUseEnglishLanguage";
public static final String ALWAYS_DELETE_FILE = "prefsAlwaysDeleteFile";
public static final String BUFFER_SIZE = "prefsBufferSize";
public static final String HAS_SHOWN_FILEBROWSER_MESSAGE = "hasShownBrowserHelpMessage";
Expand Down
12 changes: 0 additions & 12 deletions app/src/main/java/com/miz/mizuu/SplashScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@
import com.miz.service.TvShowsLibraryUpdate;
import com.miz.utils.FileUtils;

import java.util.Locale;

import static com.miz.functions.PreferenceKeys.SCHEDULED_UPDATES_MOVIE;
import static com.miz.functions.PreferenceKeys.SCHEDULED_UPDATES_TVSHOWS;
import static com.miz.functions.PreferenceKeys.STARTUP_SELECTION;
import static com.miz.functions.PreferenceKeys.USE_ENGLISH_LANGUAGE;

public class SplashScreen extends Activity {

Expand All @@ -61,15 +58,6 @@ public void onCreate(Bundle savedInstanceState) {
SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
String startup = settings.getString(STARTUP_SELECTION, "1");

if (settings.getBoolean(USE_ENGLISH_LANGUAGE, false)) {
Locale locale = new Locale("en");
Locale.setDefault(locale);
Configuration config = new Configuration();
config.locale = locale;
getBaseContext().getResources().updateConfiguration(config,
getBaseContext().getResources().getDisplayMetrics());
}

if (settings.getInt(SCHEDULED_UPDATES_MOVIE, ScheduledUpdatesFragment.NOT_ENABLED) == ScheduledUpdatesFragment.AT_LAUNCH)
getApplicationContext().startService(new Intent(getApplicationContext(), MovieLibraryUpdate.class));

Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@
<string name="unidentified">Unidentified</string>
<string name="translations">Translations</string>
<string name="prefixes">the ,a ,an ,</string>
<string name="forceEnglishApplicationLanguage">Force English application language</string>
<string name="useEnglishLanguage">Use English language instead of the system language. Requires application restart.</string>
<string name="gridView">Grid view</string>
<string name="listView">List view</string>
<string name="deleteFile">Delete file</string>
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/res/xml/general_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
android:key="prefsStartup"
android:summary="@string/stringLaunchScreenDescription"
android:title="@string/stringLaunchScreen" />

<CheckBoxPreference
android:icon="@drawable/ic_language_white_24dp"
android:key="prefsUseEnglishLanguage"
android:summary="@string/useEnglishLanguage"
android:title="@string/forceEnglishApplicationLanguage" />
</PreferenceCategory>

</PreferenceScreen>

0 comments on commit b809478

Please sign in to comment.