mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Merge pull request #7532 from mahdihijazi/mahdi/remove_cxl_btn
Android: Remove the cancel button from the file browser
This commit is contained in:
@ -28,22 +28,17 @@ public class CustomFilePickerFragment extends FilePickerFragment
|
|||||||
file);
|
file);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override public void onActivityCreated(Bundle savedInstanceState)
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
|
|
||||||
{
|
{
|
||||||
View view = super.onCreateView(inflater, container, savedInstanceState);
|
super.onActivityCreated(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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user