Android: Change the file browser dialog ok button title

I hope this will make it more clear to users that they are suppose to
select the dircetory that has the games.

Original commit by mahdihijazi for Dolphin-emu.
This commit is contained in:
FearlessTobi 2020-03-28 20:14:30 +01:00 committed by bunnei
parent a6ef15d0c6
commit 3c289087c2
2 changed files with 23 additions and 0 deletions

View File

@ -1,9 +1,11 @@
package org.citra.citra_emu.fragments;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.content.FileProvider;
import android.support.v7.widget.Toolbar;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@ -27,6 +29,25 @@ public class CustomFilePickerFragment extends FilePickerFragment {
file);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
{
View view = super.onCreateView(inflater, container, savedInstanceState);
if (view == null)
return null;
TextView ok = view.findViewById(R.id.nnf_button_ok);
TextView cancel = view.findViewById(R.id.nnf_button_cancel);
ok.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
cancel.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
ok.setAllCaps(false);
cancel.setAllCaps(false);
ok.setText(R.string.select_dir);
return view;
}
@Override
protected View inflateRootView(LayoutInflater inflater, ViewGroup container) {
View view = super.inflateRootView(inflater, container);

View File

@ -135,4 +135,6 @@
<string name="load_settings">Loading Settings...</string>
<string name="external_storage_not_mounted">The external storage needs to be available in order to use Citra</string>
<string name="select_dir">Select This Directory</string>
</resources>