Skip to content

Commit

Permalink
added Russian and Dark Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
suragch committed May 8, 2020
1 parent c1a2507 commit 1475cf6
Show file tree
Hide file tree
Showing 39 changed files with 112 additions and 324 deletions.
150 changes: 0 additions & 150 deletions .idea/assetWizardSettings.xml

This file was deleted.

Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file removed .idea/caches/gradle_models.ser
Binary file not shown.
3 changes: 3 additions & 0 deletions .idea/codeStyles/Project.xml
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions .idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

2 changes: 0 additions & 2 deletions .idea/gradle.xml
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 5 additions & 70 deletions .idea/misc.xml
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions .idea/modules.xml
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified .idea/runConfigurations.xml
100755 → 100644
Empty file.
3 changes: 0 additions & 3 deletions app/src/main/java/com/aepronunciation/ipa/AboutActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ protected void onCreate(Bundle savedInstanceState) {
getSupportActionBar().setDisplayShowHomeEnabled(true);
}

TextView tvAboutAppName = findViewById(R.id.tvAboutAppName);
TextView tvVersion = findViewById(R.id.tvAboutVersion);
String appName = getResources().getString(R.string.app_name);
String appVersion = "";
try {
appVersion = getApplicationContext()
Expand All @@ -36,7 +34,6 @@ protected void onCreate(Bundle savedInstanceState) {
} catch (NameNotFoundException e) {
e.printStackTrace();
}
tvAboutAppName.setText(appName);
tvVersion.setText(String.format(getString(R.string.about_app_version), appVersion));
}

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/com/aepronunciation/ipa/AppLocale.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ static Locale getLocale(Context context) {
case "zh-rTW":
case "zh":
return Locale.TRADITIONAL_CHINESE;
case "ru":
return new Locale("ru","RU");
default:
return Locale.US;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private void playSound(String ipaSound) {

if (soundId == -1) {

AlertDialog.Builder builder = new AlertDialog.Builder(this);
AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.AlertDialogTheme);
builder.setMessage(Answer.getErrorMessage(this, ipaSound));
builder.setPositiveButton(R.string.error_dialog_ok_button, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void clearText() {
return;
}

AlertDialog.Builder builder = new AlertDialog.Builder(this);
AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.AlertDialogTheme);
builder.setMessage(getString(R.string.keyboard_menu_alert_message));
builder.setCancelable(true);
builder.setPositiveButton(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {

// build the alert dialog
String title = String.format(getString(R.string.title_activity_learn_double), ipa);
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AlertDialogTheme);
builder.setView(view)
.setTitle(title)
.setPositiveButton(R.string.select_sounds_positive_button, new DialogInterface.OnClickListener() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ private void playSound(String ipaSound) {

if (soundId == -1) {
if (getActivity() == null) return;
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AlertDialogTheme);
builder.setMessage(Answer.getErrorMessage(getActivity(), ipaSound));
builder.setPositiveButton(R.string.error_dialog_ok_button, null);
AlertDialog dialog = builder.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void run() {
});

// build the alert dialog
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(), R.style.AlertDialogTheme);
builder.setView(view)
.setTitle(getString(R.string.select_sounds_title))
.setPositiveButton(R.string.select_sounds_positive_button, new DialogInterface.OnClickListener() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private void playSound(String ipaSound) {

if (soundId == -1) {

AlertDialog.Builder builder = new AlertDialog.Builder(this);
AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.AlertDialogTheme);
builder.setMessage(Answer.getErrorMessage(this, ipaSound));
builder.setPositiveButton(R.string.error_dialog_ok_button, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Expand Down
Loading

0 comments on commit 1475cf6

Please sign in to comment.