Permalink
Browse files

Merge pull request #7520 from mahdihijazi/app_bundles

Android: Change the file browser dialog ok button title
  • Loading branch information...
delroth committed Oct 28, 2018
2 parents 53a45e5 + cc4d998 commit 2bbc9d40f0a47feba31fe6fdef77361103662f50
@@ -1,8 +1,16 @@
package org.dolphinemu.dolphinemu.fragments;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.content.FileProvider;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import org.dolphinemu.dolphinemu.R;
import com.nononsenseapps.filepicker.FilePickerFragment;
@@ -19,4 +27,23 @@ public Uri toUri(@NonNull final File file)
getContext().getApplicationContext().getPackageName() + ".filesprovider",
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;
}
}
@@ -299,4 +299,6 @@
<!-- Extra Leanback Homescreen Channels-->
<string name="homescreen_favorites">Favorites</string>
<string name="select_dir">Select This Directory</string>
</resources>

0 comments on commit 2bbc9d4

Please sign in to comment.