Android: Remove the cancel button from the file browser
Fix the regresion from dolphin-emu/dolphin#7520, also it applies the change to the directory picker only. Original commit by mahdihijazi for Dolphin-emu.
This commit is contained in:
parent
0d93a232c2
commit
0a8fd29d02
@ -30,22 +30,16 @@ public class CustomFilePickerFragment extends FilePickerFragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
|
public void onActivityCreated(Bundle savedInstanceState) {
|
||||||
{
|
super.onActivityCreated(savedInstanceState);
|
||||||
View view = super.onCreateView(inflater, container, savedInstanceState);
|
|
||||||
if (view == null)
|
|
||||||
return null;
|
|
||||||
|
|
||||||
TextView ok = view.findViewById(R.id.nnf_button_ok);
|
if (mode == MODE_DIR) {
|
||||||
TextView cancel = view.findViewById(R.id.nnf_button_cancel);
|
TextView ok = getActivity().findViewById(R.id.nnf_button_ok);
|
||||||
|
ok.setText(R.string.select_dir);
|
||||||
|
|
||||||
ok.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
|
TextView cancel = getActivity().findViewById(R.id.nnf_button_cancel);
|
||||||
cancel.setTextSize(TypedValue.COMPLEX_UNIT_SP, 14);
|
cancel.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
ok.setAllCaps(false);
|
|
||||||
cancel.setAllCaps(false);
|
|
||||||
ok.setText(R.string.select_dir);
|
|
||||||
return view;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user