pref: 暂时删除没用的“Beta”版选项
This commit is contained in:
parent
6a12257fb1
commit
a6efd8d5db
|
|
@ -7,7 +7,6 @@ import com.huanchengfly.tieba.post.R;
|
||||||
import com.huanchengfly.tieba.post.fragments.intro.CustomSettingsFragment;
|
import com.huanchengfly.tieba.post.fragments.intro.CustomSettingsFragment;
|
||||||
import com.huanchengfly.tieba.post.fragments.intro.ExploreFragment;
|
import com.huanchengfly.tieba.post.fragments.intro.ExploreFragment;
|
||||||
import com.huanchengfly.tieba.post.fragments.intro.HabitSettingsFragment;
|
import com.huanchengfly.tieba.post.fragments.intro.HabitSettingsFragment;
|
||||||
import com.huanchengfly.tieba.post.fragments.intro.OtherSettingsFragment;
|
|
||||||
import com.huanchengfly.tieba.post.fragments.intro.PermissionFragment;
|
import com.huanchengfly.tieba.post.fragments.intro.PermissionFragment;
|
||||||
import com.huanchengfly.tieba.post.ui.intro.BaseIntroActivity;
|
import com.huanchengfly.tieba.post.ui.intro.BaseIntroActivity;
|
||||||
import com.huanchengfly.tieba.post.ui.intro.fragments.AppIntroFragment;
|
import com.huanchengfly.tieba.post.ui.intro.fragments.AppIntroFragment;
|
||||||
|
|
@ -35,7 +34,6 @@ public class NewIntroActivity extends BaseIntroActivity {
|
||||||
}
|
}
|
||||||
getAdapter().addFragment(new HabitSettingsFragment());
|
getAdapter().addFragment(new HabitSettingsFragment());
|
||||||
getAdapter().addFragment(new CustomSettingsFragment());
|
getAdapter().addFragment(new CustomSettingsFragment());
|
||||||
getAdapter().addFragment(new OtherSettingsFragment());
|
|
||||||
getAdapter().addFragment(new ExploreFragment());
|
getAdapter().addFragment(new ExploreFragment());
|
||||||
getAdapter().addFragment(new AppIntroFragment.Builder(this)
|
getAdapter().addFragment(new AppIntroFragment.Builder(this)
|
||||||
.setIconRes(R.drawable.ic_round_emoji_emotions)
|
.setIconRes(R.drawable.ic_round_emoji_emotions)
|
||||||
|
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
||||||
package com.huanchengfly.tieba.post.fragments.intro;
|
|
||||||
|
|
||||||
import android.view.ViewGroup;
|
|
||||||
|
|
||||||
import androidx.annotation.Nullable;
|
|
||||||
|
|
||||||
import com.huanchengfly.tieba.post.R;
|
|
||||||
import com.huanchengfly.tieba.post.ui.intro.fragments.BaseIntroFragment;
|
|
||||||
import com.huanchengfly.tieba.post.ui.theme.utils.ThemeUtils;
|
|
||||||
import com.huanchengfly.tieba.post.utils.SharedPreferencesUtil;
|
|
||||||
|
|
||||||
public class OtherSettingsFragment extends BaseIntroFragment {
|
|
||||||
@Override
|
|
||||||
public int getIconRes() {
|
|
||||||
return R.drawable.ic_round_settings_grey;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nullable
|
|
||||||
@Override
|
|
||||||
protected CharSequence getTitle() {
|
|
||||||
return getAttachContext().getString(R.string.title_fragment_other_settings);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nullable
|
|
||||||
@Override
|
|
||||||
protected CharSequence getSubtitle() {
|
|
||||||
return getAttachContext().getString(R.string.subtitle_fragment_other_settings);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected int getIconColor() {
|
|
||||||
return ThemeUtils.getColorByAttr(getAttachContext(), R.attr.colorAccent);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected int getTitleTextColor() {
|
|
||||||
return ThemeUtils.getColorByAttr(getAttachContext(), R.attr.colorText);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected int getSubtitleTextColor() {
|
|
||||||
return ThemeUtils.getColorByAttr(getAttachContext(), R.attr.colorTextSecondary);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected int getCustomLayoutResId() {
|
|
||||||
return R.layout.fragment_container;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void initCustomLayout(ViewGroup container) {
|
|
||||||
super.initCustomLayout(container);
|
|
||||||
getChildFragmentManager().beginTransaction()
|
|
||||||
.replace(R.id.container, IntroSettingsFragment.newInstance(R.xml.other_preferences, SharedPreferencesUtil.SP_SETTINGS), "IntroSettingsFragment")
|
|
||||||
.commit();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?><!--suppress AndroidElementNotAllowed -->
|
|
||||||
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<androidx.preference.PreferenceCategory android:layout="@layout/layout_preference_category_no_title">
|
|
||||||
<SwitchPreference
|
|
||||||
android:defaultValue="false"
|
|
||||||
android:icon="@drawable/ic_round_bug_report_blue"
|
|
||||||
android:key="check_beta_update"
|
|
||||||
android:layout="@layout/layout_preference"
|
|
||||||
android:summary="@string/tip_check_beta_update"
|
|
||||||
android:title="@string/title_check_beta_update"
|
|
||||||
android:widgetLayout="@layout/layout_switch" />
|
|
||||||
|
|
||||||
<SwitchPreference
|
|
||||||
android:defaultValue="true"
|
|
||||||
android:icon="@drawable/ic_chrome"
|
|
||||||
android:key="use_webview"
|
|
||||||
android:layout="@layout/layout_preference"
|
|
||||||
android:summaryOff="@string/tip_use_webview"
|
|
||||||
android:summaryOn="@string/tip_use_webview_on"
|
|
||||||
android:title="@string/title_use_webview"
|
|
||||||
android:widgetLayout="@layout/layout_switch" />
|
|
||||||
</androidx.preference.PreferenceCategory>
|
|
||||||
</androidx.preference.PreferenceScreen>
|
|
||||||
|
|
@ -232,12 +232,14 @@
|
||||||
</androidx.preference.PreferenceCategory>
|
</androidx.preference.PreferenceCategory>
|
||||||
|
|
||||||
<androidx.preference.PreferenceCategory android:title="@string/title_settings_about">
|
<androidx.preference.PreferenceCategory android:title="@string/title_settings_about">
|
||||||
|
<!--
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="false"
|
android:defaultValue="false"
|
||||||
android:icon="@drawable/ic_round_bug_report_blue"
|
android:icon="@drawable/ic_round_bug_report_blue"
|
||||||
android:key="check_beta_update"
|
android:key="check_beta_update"
|
||||||
android:summary="@string/tip_check_beta_update"
|
android:summary="@string/tip_check_beta_update"
|
||||||
android:title="@string/title_check_beta_update" />
|
android:title="@string/title_check_beta_update" />
|
||||||
|
-->
|
||||||
|
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="true"
|
android:defaultValue="true"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue