From 2caf013b205d972cd46916d8c8606bddd5efd127 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Wed, 23 Mar 2016 13:27:45 +0800 Subject: [PATCH] added option to turn new document off, close #387 --- .../constant/SharedPreferenceConstants.java | 2 ++ .../activity/QuickSearchBarActivity.java | 7 +++-- .../twidere/adapter/BaseArrayAdapter.java | 5 +++- .../adapter/MessageConversationAdapter.java | 2 +- .../adapter/ParcelableActivitiesAdapter.java | 5 ++-- .../adapter/ParcelableStatusesAdapter.java | 2 +- .../twidere/fragment/AbsStatusesFragment.java | 3 +- .../fragment/AccountsDashboardFragment.java | 6 ++-- .../fragment/AccountsManagerFragment.java | 6 ++-- .../fragment/DirectMessagesFragment.java | 3 +- .../twidere/fragment/ItemsListFragment.java | 3 +- .../fragment/ParcelableUsersFragment.java | 3 +- .../twidere/fragment/StatusFragment.java | 28 +++++++++++++------ .../twidere/fragment/UserFragment.java | 7 +++-- .../twidere/fragment/UserListFragment.java | 3 +- .../fragment/UserProfileEditorFragment.java | 2 -- .../util/DirectMessageOnLinkClickHandler.java | 5 ++-- .../twidere/util/OnLinkClickHandler.java | 15 +++++++--- .../util/StatusAdapterLinkClickHandler.java | 5 ++-- .../twidere/util/StatusLinkClickHandler.java | 4 +-- twidere/src/main/res/values-v21/bools.xml | 4 +++ twidere/src/main/res/values/bools.xml | 1 + twidere/src/main/res/values/strings.xml | 2 ++ .../src/main/res/xml/preferences_content.xml | 8 ++++++ 24 files changed, 91 insertions(+), 40 deletions(-) create mode 100644 twidere/src/main/res/values-v21/bools.xml diff --git a/twidere.component.common/src/main/java/org/mariotaku/twidere/constant/SharedPreferenceConstants.java b/twidere.component.common/src/main/java/org/mariotaku/twidere/constant/SharedPreferenceConstants.java index 968316d4a..d5af09498 100644 --- a/twidere.component.common/src/main/java/org/mariotaku/twidere/constant/SharedPreferenceConstants.java +++ b/twidere.component.common/src/main/java/org/mariotaku/twidere/constant/SharedPreferenceConstants.java @@ -324,4 +324,6 @@ public interface SharedPreferenceConstants { String KEY_I_WANT_MY_STARS_BACK = "i_want_my_stars_back"; @Preference(type = STRING, hasDefault = false) String KEY_EMOJI_SUPPORT = "emoji_support"; + @Preference(type = BOOLEAN, hasDefault = true, defaultBoolean = true) + String KEY_NEW_DOCUMENT_API = "new_document_api"; } diff --git a/twidere/src/main/java/org/mariotaku/twidere/activity/QuickSearchBarActivity.java b/twidere/src/main/java/org/mariotaku/twidere/activity/QuickSearchBarActivity.java index 4bd4bb928..f95873409 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/activity/QuickSearchBarActivity.java +++ b/twidere/src/main/java/org/mariotaku/twidere/activity/QuickSearchBarActivity.java @@ -168,14 +168,15 @@ public class QuickSearchBarActivity extends BaseActivity implements OnClickListe switch (mUsersSearchAdapter.getItemViewType(position)) { case SuggestionsAdapter.VIEW_TYPE_USER_SUGGESTION_ITEM: { IntentUtils.openUserProfile(this, getSelectedAccountKey(), - UserKey.valueOf(item.extra_id), item.summary, null, true, + UserKey.valueOf(item.extra_id), item.summary, null, + mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), UserFragment.Referral.DIRECT); finish(); break; } case SuggestionsAdapter.VIEW_TYPE_USER_SCREEN_NAME: { - IntentUtils.openUserProfile(this, getSelectedAccountKey(), null, item.title, null, true, - UserFragment.Referral.DIRECT); + IntentUtils.openUserProfile(this, getSelectedAccountKey(), null, item.title, null, + mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), UserFragment.Referral.DIRECT); finish(); break; } diff --git a/twidere/src/main/java/org/mariotaku/twidere/adapter/BaseArrayAdapter.java b/twidere/src/main/java/org/mariotaku/twidere/adapter/BaseArrayAdapter.java index 744f69aea..77cec7d8a 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/adapter/BaseArrayAdapter.java +++ b/twidere/src/main/java/org/mariotaku/twidere/adapter/BaseArrayAdapter.java @@ -28,6 +28,7 @@ import org.mariotaku.twidere.app.TwidereApplication; import org.mariotaku.twidere.util.MediaLoaderWrapper; import org.mariotaku.twidere.util.MultiSelectManager; import org.mariotaku.twidere.util.OnLinkClickHandler; +import org.mariotaku.twidere.util.SharedPreferencesWrapper; import org.mariotaku.twidere.util.TwidereLinkify; import org.mariotaku.twidere.util.UserColorNameManager; import org.mariotaku.twidere.util.Utils; @@ -53,6 +54,8 @@ public class BaseArrayAdapter extends ArrayAdapter implements IBaseAdapter protected MediaLoaderWrapper mImageLoader; @Inject protected MultiSelectManager mMultiSelectManager; + @Inject + protected SharedPreferencesWrapper mPreferences; public BaseArrayAdapter(final Context context, final int layoutRes) { this(context, layoutRes, null); @@ -63,7 +66,7 @@ public class BaseArrayAdapter extends ArrayAdapter implements IBaseAdapter //noinspection unchecked GeneralComponentHelper.build(context).inject((BaseArrayAdapter) this); final TwidereApplication app = TwidereApplication.getInstance(context); - mLinkify = new TwidereLinkify(new OnLinkClickHandler(context, mMultiSelectManager)); + mLinkify = new TwidereLinkify(new OnLinkClickHandler(context, mMultiSelectManager, mPreferences)); mNicknamePrefs = context.getSharedPreferences(USER_NICKNAME_PREFERENCES_NAME, Context.MODE_PRIVATE); mColorPrefs = context.getSharedPreferences(USER_COLOR_PREFERENCES_NAME, Context.MODE_PRIVATE); mNicknamePrefs.registerOnSharedPreferenceChangeListener(this); diff --git a/twidere/src/main/java/org/mariotaku/twidere/adapter/MessageConversationAdapter.java b/twidere/src/main/java/org/mariotaku/twidere/adapter/MessageConversationAdapter.java index 0ae2f2dda..baac1fa93 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/adapter/MessageConversationAdapter.java +++ b/twidere/src/main/java/org/mariotaku/twidere/adapter/MessageConversationAdapter.java @@ -71,7 +71,7 @@ public class MessageConversationAdapter extends BaseRecyclerViewAdapter(this)); + mLinkify = new TwidereLinkify(new StatusAdapterLinkClickHandler<>(this, mPreferences)); setShowInReplyTo(true); setHasStableIds(true); } diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/AbsStatusesFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/AbsStatusesFragment.java index 435530c6b..ff94152a5 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/AbsStatusesFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/AbsStatusesFragment.java @@ -421,7 +421,8 @@ public abstract class AbsStatusesFragment extends AbsContentListRecyclerViewFrag final FragmentActivity activity = getActivity(); final ParcelableStatus status = getAdapter().getStatus(position); IntentUtils.openUserProfile(activity, status.account_key, status.user_key, - status.user_screen_name, null, true, UserFragment.Referral.TIMELINE_STATUS); + status.user_screen_name, null, mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), + UserFragment.Referral.TIMELINE_STATUS); } @Override diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/AccountsDashboardFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/AccountsDashboardFragment.java index 58ecb7bf9..9bcd2a7e4 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/AccountsDashboardFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/AccountsDashboardFragment.java @@ -228,11 +228,13 @@ public class AccountsDashboardFragment extends BaseSupportFragment implements Lo if (account == null) return; final FragmentActivity activity = getActivity(); if (account.account_user != null) { - IntentUtils.openUserProfile(activity, account.account_user, null, true, + IntentUtils.openUserProfile(activity, account.account_user, null, + mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), UserFragment.Referral.SELF_PROFILE); } else { IntentUtils.openUserProfile(activity, account.account_key, - account.account_key, account.screen_name, null, true, + account.account_key, account.screen_name, null, + mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), UserFragment.Referral.SELF_PROFILE); } break; diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/AccountsManagerFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/AccountsManagerFragment.java index 188e43668..23b5df618 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/AccountsManagerFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/AccountsManagerFragment.java @@ -155,11 +155,13 @@ public class AccountsManagerFragment extends BaseSupportFragment implements Load if (context == null) return; final ParcelableAccount account = mAdapter.getAccount(position); if (account.account_user != null) { - IntentUtils.openUserProfile(context, account.account_user, null, true, + IntentUtils.openUserProfile(context, account.account_user, null, + mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), UserFragment.Referral.SELF_PROFILE); } else { IntentUtils.openUserProfile(context, account.account_key, account.account_key, - account.screen_name, null, true, UserFragment.Referral.SELF_PROFILE); + account.screen_name, null, mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), + UserFragment.Referral.SELF_PROFILE); } } diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/DirectMessagesFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/DirectMessagesFragment.java index 5970c2d45..bd5610f8f 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/DirectMessagesFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/DirectMessagesFragment.java @@ -204,7 +204,8 @@ public class DirectMessagesFragment extends AbsContentListRecyclerViewFragment data) { + mHasMoreConversation = data != null && !data.isEmpty(); final ReadPosition readPosition = saveReadPosition(); mStatusAdapter.setData(data); restoreReadPosition(readPosition); @@ -656,6 +660,7 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac @Override public void onLoadMoreContents(@IndicatorPosition int position) { + if (!mHasMoreConversation) return; if ((position & IndicatorPosition.START) != 0) { final int start = mStatusAdapter.getIndexStart(StatusAdapter.ITEM_IDX_CONVERSATION); final ParcelableStatus status = mStatusAdapter.getStatus(start); @@ -957,7 +962,8 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac public DetailStatusViewHolder(final StatusAdapter adapter, View itemView) { super(itemView); this.adapter = adapter; - this.linkClickHandler = new DetailStatusLinkClickHandler(adapter.getContext(), null, adapter); + this.linkClickHandler = new DetailStatusLinkClickHandler(adapter.getContext(), null, + adapter, adapter.getPreferences()); this.linkify = new TwidereLinkify(linkClickHandler); menuBar = (ActionMenuView) itemView.findViewById(R.id.menu_bar); nameView = (NameView) itemView.findViewById(R.id.name); @@ -1205,6 +1211,7 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac final ParcelableStatus status = adapter.getStatus(getLayoutPosition()); final StatusFragment fragment = adapter.getFragment(); if (status == null || fragment == null) return; + final SharedPreferencesWrapper preferences = fragment.mPreferences; switch (v.getId()) { case R.id.media_preview_load: { if (adapter.isSensitiveContentEnabled() || !status.is_possibly_sensitive) { @@ -1218,14 +1225,16 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac case R.id.profile_container: { final FragmentActivity activity = fragment.getActivity(); IntentUtils.openUserProfile(activity, status.account_key, status.user_key, - status.user_screen_name, null, true, UserFragment.Referral.STATUS); + status.user_screen_name, null, preferences.getBoolean(KEY_NEW_DOCUMENT_API), + UserFragment.Referral.STATUS); break; } case R.id.retweeted_by: { if (status.retweet_id != null) { IntentUtils.openUserProfile(adapter.getContext(), status.account_key, status.retweeted_by_user_key, status.retweeted_by_user_screen_name, - null, true, UserFragment.Referral.STATUS); + null, preferences.getBoolean(KEY_NEW_DOCUMENT_API), + UserFragment.Referral.STATUS); } break; } @@ -1238,7 +1247,7 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac case R.id.quoted_name: { IntentUtils.openUserProfile(adapter.getContext(), status.account_key, status.quoted_user_key, status.quoted_user_screen_name, null, - true, UserFragment.Referral.STATUS); + preferences.getBoolean(KEY_NEW_DOCUMENT_API), UserFragment.Referral.STATUS); break; } case R.id.quote_original_link: { @@ -1607,8 +1616,10 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac private static class DetailStatusLinkClickHandler extends StatusLinkClickHandler { private final StatusAdapter adapter; - public DetailStatusLinkClickHandler(Context context, MultiSelectManager manager, StatusAdapter adapter) { - super(context, manager); + public DetailStatusLinkClickHandler(Context context, MultiSelectManager manager, + StatusAdapter adapter, + SharedPreferencesWrapper preferences) { + super(context, manager, preferences); this.adapter = adapter; } @@ -1761,7 +1772,8 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac } else { mCardLayoutResource = R.layout.card_item_status; } - mTwidereLinkify = new TwidereLinkify(new StatusAdapterLinkClickHandler<>(this)); + mTwidereLinkify = new TwidereLinkify(new StatusAdapterLinkClickHandler<>(this, + mPreferences)); } public int findPositionById(long itemId) { diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/UserFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/UserFragment.java index 1188c28d2..ca3343679 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/UserFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/UserFragment.java @@ -700,7 +700,8 @@ public class UserFragment extends BaseSupportFragment implements OnClickListener @Referral final String referral = getArguments().getString(EXTRA_REFERRAL); IntentUtils.openUserProfile(getActivity(), accountKey, user.key, - user.screen_name, null, true, referral); + user.screen_name, null, mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), + referral); } break; } @@ -1382,8 +1383,8 @@ public class UserFragment extends BaseSupportFragment implements OnClickListener if (user == null) return; switch (type) { case TwidereLinkify.LINK_TYPE_MENTION: { - IntentUtils.openUserProfile(getActivity(), user.account_key, null, link, null, true, - Referral.USER_MENTION); + IntentUtils.openUserProfile(getActivity(), user.account_key, null, link, null, + mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), Referral.USER_MENTION); break; } case TwidereLinkify.LINK_TYPE_HASHTAG: { diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/UserListFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/UserListFragment.java index 744d6a05e..c906060ee 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/UserListFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/UserListFragment.java @@ -336,7 +336,8 @@ public class UserListFragment extends AbsToolbarTabPagesFragment implements OnCl final ParcelableUserList userList = mUserList; if (userList == null) return; IntentUtils.openUserProfile(getActivity(), userList.account_key, - userList.user_key, userList.user_screen_name, null, true, null); + userList.user_key, userList.user_screen_name, null, + mPreferences.getBoolean(KEY_NEW_DOCUMENT_API), null); break; } } diff --git a/twidere/src/main/java/org/mariotaku/twidere/fragment/UserProfileEditorFragment.java b/twidere/src/main/java/org/mariotaku/twidere/fragment/UserProfileEditorFragment.java index 743196f70..f18af12d2 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/fragment/UserProfileEditorFragment.java +++ b/twidere/src/main/java/org/mariotaku/twidere/fragment/UserProfileEditorFragment.java @@ -94,7 +94,6 @@ public class UserProfileEditorFragment extends BaseSupportFragment implements On private AsyncTask mTask; private ImageView mProfileImageView; private ImageView mProfileBannerView; - private MaterialEditText mEditScreenName; private MaterialEditText mEditName; private MaterialEditText mEditDescription; private MaterialEditText mEditLocation; @@ -277,7 +276,6 @@ public class UserProfileEditorFragment extends BaseSupportFragment implements On mEditProfileContent = view.findViewById(R.id.edit_profile_content); mProfileBannerView = (ImageView) view.findViewById(R.id.profile_banner); mProfileImageView = (ImageView) view.findViewById(R.id.profile_image); - mEditScreenName = (MaterialEditText) view.findViewById(R.id.screen_name); mEditName = (MaterialEditText) view.findViewById(R.id.name); mEditDescription = (MaterialEditText) view.findViewById(R.id.description); mEditLocation = (MaterialEditText) view.findViewById(R.id.location); diff --git a/twidere/src/main/java/org/mariotaku/twidere/util/DirectMessageOnLinkClickHandler.java b/twidere/src/main/java/org/mariotaku/twidere/util/DirectMessageOnLinkClickHandler.java index 867dc78d4..5f23f16ef 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/util/DirectMessageOnLinkClickHandler.java +++ b/twidere/src/main/java/org/mariotaku/twidere/util/DirectMessageOnLinkClickHandler.java @@ -34,8 +34,9 @@ public class DirectMessageOnLinkClickHandler extends OnLinkClickHandler { private static final String[] SHORT_LINK_SERVICES = new String[]{"bit.ly", "ow.ly", "tinyurl.com", "goo.gl", "k6.kz", "is.gd", "tr.im", "x.co", "weepp.ru"}; - public DirectMessageOnLinkClickHandler(final Context context, final MultiSelectManager manager) { - super(context, manager); + public DirectMessageOnLinkClickHandler(final Context context, final MultiSelectManager manager, + SharedPreferencesWrapper preferences) { + super(context, manager, preferences); } @Override diff --git a/twidere/src/main/java/org/mariotaku/twidere/util/OnLinkClickHandler.java b/twidere/src/main/java/org/mariotaku/twidere/util/OnLinkClickHandler.java index 20edb3f43..a0c9369a7 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/util/OnLinkClickHandler.java +++ b/twidere/src/main/java/org/mariotaku/twidere/util/OnLinkClickHandler.java @@ -44,10 +44,14 @@ public class OnLinkClickHandler implements OnLinkClickListener, Constants { protected final Context context; @Nullable protected final MultiSelectManager manager; + @NonNull + protected final SharedPreferencesWrapper preferences; - public OnLinkClickHandler(@NonNull final Context context, @Nullable final MultiSelectManager manager) { + public OnLinkClickHandler(@NonNull final Context context, @Nullable final MultiSelectManager manager, + @NonNull SharedPreferencesWrapper preferences) { this.context = context; this.manager = manager; + this.preferences = preferences; } @Override @@ -64,7 +68,8 @@ public class OnLinkClickHandler implements OnLinkClickListener, Constants { switch (type) { case TwidereLinkify.LINK_TYPE_MENTION: { - IntentUtils.openUserProfile(context, accountKey, null, link, null, true, + IntentUtils.openUserProfile(context, accountKey, null, link, null, + preferences.getBoolean(KEY_NEW_DOCUMENT_API), UserFragment.Referral.USER_MENTION); break; } @@ -98,7 +103,8 @@ public class OnLinkClickHandler implements OnLinkClickListener, Constants { } final String screenName = orig.substring(1, length); IntentUtils.openUserProfile(context, accountKey, UserKey.valueOf(id), - screenName, null, true, UserFragment.Referral.USER_MENTION); + screenName, null, preferences.getBoolean(KEY_NEW_DOCUMENT_API), + UserFragment.Referral.USER_MENTION); break; } } else if (TwidereLinkify.isHashSymbol(ch) && @@ -126,7 +132,8 @@ public class OnLinkClickHandler implements OnLinkClickListener, Constants { } case TwidereLinkify.LINK_TYPE_USER_ID: { IntentUtils.openUserProfile(context, accountKey, UserKey.valueOf(link), null, null, - true, UserFragment.Referral.USER_MENTION); + preferences.getBoolean(KEY_NEW_DOCUMENT_API), + UserFragment.Referral.USER_MENTION); break; } case TwidereLinkify.LINK_TYPE_STATUS: { diff --git a/twidere/src/main/java/org/mariotaku/twidere/util/StatusAdapterLinkClickHandler.java b/twidere/src/main/java/org/mariotaku/twidere/util/StatusAdapterLinkClickHandler.java index 6ae48f552..9e2c80f2b 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/util/StatusAdapterLinkClickHandler.java +++ b/twidere/src/main/java/org/mariotaku/twidere/util/StatusAdapterLinkClickHandler.java @@ -33,8 +33,9 @@ public class StatusAdapterLinkClickHandler extends OnLinkClickHandler { private final IStatusesAdapter adapter; - public StatusAdapterLinkClickHandler(IStatusesAdapter adapter) { - super(adapter.getContext(), null); + public StatusAdapterLinkClickHandler(IStatusesAdapter adapter, + SharedPreferencesWrapper preferences) { + super(adapter.getContext(), null, preferences); this.adapter = adapter; } diff --git a/twidere/src/main/java/org/mariotaku/twidere/util/StatusLinkClickHandler.java b/twidere/src/main/java/org/mariotaku/twidere/util/StatusLinkClickHandler.java index 268b76a4c..c85d1887a 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/util/StatusLinkClickHandler.java +++ b/twidere/src/main/java/org/mariotaku/twidere/util/StatusLinkClickHandler.java @@ -57,7 +57,7 @@ public class StatusLinkClickHandler extends OnLinkClickHandler { mStatus = status; } - public StatusLinkClickHandler(Context context, MultiSelectManager manager) { - super(context, manager); + public StatusLinkClickHandler(Context context, MultiSelectManager manager, SharedPreferencesWrapper preferences) { + super(context, manager, preferences); } } diff --git a/twidere/src/main/res/values-v21/bools.xml b/twidere/src/main/res/values-v21/bools.xml new file mode 100644 index 000000000..7d2344046 --- /dev/null +++ b/twidere/src/main/res/values-v21/bools.xml @@ -0,0 +1,4 @@ + + + true + \ No newline at end of file diff --git a/twidere/src/main/res/values/bools.xml b/twidere/src/main/res/values/bools.xml index 82030ac7a..cb91b6963 100644 --- a/twidere/src/main/res/values/bools.xml +++ b/twidere/src/main/res/values/bools.xml @@ -2,6 +2,7 @@ false + false false false false diff --git a/twidere/src/main/res/values/strings.xml b/twidere/src/main/res/values/strings.xml index b81e8c3c1..12da9c1fe 100644 --- a/twidere/src/main/res/values/strings.xml +++ b/twidere/src/main/res/values/strings.xml @@ -767,4 +767,6 @@ Twidere Fanfou + New Document API + Open profile and media in new task \ No newline at end of file diff --git a/twidere/src/main/res/xml/preferences_content.xml b/twidere/src/main/res/xml/preferences_content.xml index e2030b2a0..46384dedf 100644 --- a/twidere/src/main/res/xml/preferences_content.xml +++ b/twidere/src/main/res/xml/preferences_content.xml @@ -1,4 +1,5 @@ + + +