diff --git a/feature/setting/src/main/java/one/nem/lacerta/setting/SettingScanPageFragment.java b/feature/setting/src/main/java/one/nem/lacerta/setting/SettingScanPageFragment.java index cad410b9..986fdb2e 100644 --- a/feature/setting/src/main/java/one/nem/lacerta/setting/SettingScanPageFragment.java +++ b/feature/setting/src/main/java/one/nem/lacerta/setting/SettingScanPageFragment.java @@ -17,16 +17,16 @@ import android.view.ViewGroup; * Use the {@link SettingScanPageFragment#newInstance} factory method to * create an instance of this fragment. */ -public class SettingScanPageFragment extends PreferenceFragmentCompat { +public class SettingScanPageFragment extends Fragment { public SettingScanPageFragment() { // Required empty public constructor } - - @Override - public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { - addPreferencesFromResource(R.xml.scan_preferences); - } +// +// @Override +// public void onCreatePreferences(@Nullable Bundle savedInstanceState, @Nullable String rootKey) { +//// addPreferencesFromResource(R.xml.scan_preferences); +// } public static SettingScanPageFragment newInstance() { SettingScanPageFragment fragment = new SettingScanPageFragment(); @@ -35,4 +35,15 @@ public class SettingScanPageFragment extends PreferenceFragmentCompat { 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); + } + } \ No newline at end of file