mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
設定画面を表示できないように
This commit is contained in:
parent
0ef6863992
commit
c731749233
|
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user