設定画面を表示できないように

This commit is contained in:
r-ca 2024-01-23 03:46:30 +09:00
parent 0ef6863992
commit c731749233
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -17,16 +17,16 @@ import android.view.ViewGroup;
* Use the {@link SettingScanPageFragment#newInstance} factory method to * Use the {@link SettingScanPageFragment#newInstance} factory method to
* create an instance of this fragment. * create an instance of this fragment.
*/ */
public class SettingScanPageFragment extends PreferenceFragmentCompat { public class SettingScanPageFragment extends Fragment {
public SettingScanPageFragment() { public SettingScanPageFragment() {
// Required empty public constructor // Required empty public constructor
} }
//
@Override // @Override
public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { // public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) {
addPreferencesFromResource(R.xml.scan_preferences); //// addPreferencesFromResource(R.xml.scan_preferences);
} // }
public static SettingScanPageFragment newInstance() { public static SettingScanPageFragment newInstance() {
SettingScanPageFragment fragment = new SettingScanPageFragment(); SettingScanPageFragment fragment = new SettingScanPageFragment();
@ -35,4 +35,15 @@ public class SettingScanPageFragment extends PreferenceFragmentCompat {
return fragment; return fragment;
} }
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_setting_scan_page, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
}
} }