fix: 修复 Bug
This commit is contained in:
parent
e7649e47c8
commit
2f4b521ad0
|
|
@ -136,6 +136,7 @@
|
||||||
android:windowSoftInputMode="adjustResize" />
|
android:windowSoftInputMode="adjustResize" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".activities.LoginActivity"
|
android:name=".activities.LoginActivity"
|
||||||
|
android:label="@string/title_activity_login"
|
||||||
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden"
|
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize|keyboardHidden"
|
||||||
android:windowSoftInputMode="adjustResize" />
|
android:windowSoftInputMode="adjustResize" />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -683,7 +683,7 @@ class ForumActivity : BaseActivity(), View.OnClickListener, OnRefreshedListener,
|
||||||
(headerSloganTextView.parent as View).visibility = View.VISIBLE
|
(headerSloganTextView.parent as View).visibility = View.VISIBLE
|
||||||
headerSloganTextView.text = mDataBean!!.forum!!.slogan
|
headerSloganTextView.text = mDataBean!!.forum!!.slogan
|
||||||
}
|
}
|
||||||
headerNameTextView.text = getString(R.string.text_forum_name, mDataBean!!.forum?.name)
|
headerNameTextView.text = getString(R.string.title_forum_name, mDataBean!!.forum?.name)
|
||||||
if ("1" == mDataBean!!.forum?.isLike) {
|
if ("1" == mDataBean!!.forum?.isLike) {
|
||||||
if ("0" == mDataBean!!.forum?.signInInfo?.userInfo?.isSignIn) {
|
if ("0" == mDataBean!!.forum?.signInInfo?.userInfo?.isSignIn) {
|
||||||
button.setText(R.string.button_sign_in)
|
button.setText(R.string.button_sign_in)
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class LoginActivity : BaseActivity(), WebViewListener {
|
||||||
val actionBar = supportActionBar
|
val actionBar = supportActionBar
|
||||||
if (actionBar != null) {
|
if (actionBar != null) {
|
||||||
actionBar.setDisplayHomeAsUpEnabled(true)
|
actionBar.setDisplayHomeAsUpEnabled(true)
|
||||||
actionBar.setTitle(R.string.title_login)
|
actionBar.setTitle(R.string.title_activity_login)
|
||||||
}
|
}
|
||||||
if (savedInstanceState == null) {
|
if (savedInstanceState == null) {
|
||||||
val mWebViewFragment = WebViewFragment.newInstance(
|
val mWebViewFragment = WebViewFragment.newInstance(
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ public class PersonalizedFeedAdapter extends BaseMultiTypeAdapter<PersonalizedBe
|
||||||
getContext().getString(
|
getContext().getString(
|
||||||
R.string.template_two_string,
|
R.string.template_two_string,
|
||||||
relativeTime,
|
relativeTime,
|
||||||
getContext().getString(R.string.text_forum_name, threadBean.getForumName())
|
getContext().getString(R.string.title_forum_name, threadBean.getForumName())
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ class SearchThreadAdapter(
|
||||||
if (item.time != null) context.getString(
|
if (item.time != null) context.getString(
|
||||||
R.string.template_two_string,
|
R.string.template_two_string,
|
||||||
DateTimeUtils.getRelativeTimeString(context, item.time),
|
DateTimeUtils.getRelativeTimeString(context, item.time),
|
||||||
context.getString(R.string.text_forum_name, item.forumName)
|
context.getString(R.string.title_forum_name, item.forumName)
|
||||||
) else context.getString(R.string.text_forum_name, item.forumName)
|
) else context.getString(R.string.title_forum_name, item.forumName)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
viewHolder.itemView.background = getItemBackgroundDrawable(
|
viewHolder.itemView.background = getItemBackgroundDrawable(
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ public class UserPostAdapter extends BaseMultiTypeDelegateAdapter<UserPostBean.P
|
||||||
getContext().getString(
|
getContext().getString(
|
||||||
R.string.template_two_string,
|
R.string.template_two_string,
|
||||||
relativeTime,
|
relativeTime,
|
||||||
getContext().getString(R.string.text_forum_name, postBean.getForumName())
|
getContext().getString(R.string.title_forum_name, postBean.getForumName())
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -77,7 +77,7 @@ public class UserPostAdapter extends BaseMultiTypeDelegateAdapter<UserPostBean.P
|
||||||
R.id.message_list_item_user_time,
|
R.id.message_list_item_user_time,
|
||||||
getContext().getString(R.string.template_two_string,
|
getContext().getString(R.string.template_two_string,
|
||||||
DateTimeUtils.getRelativeTimeString(getContext(), postBean.getCreateTime()),
|
DateTimeUtils.getRelativeTimeString(getContext(), postBean.getCreateTime()),
|
||||||
getContext().getString(R.string.text_forum_name, postBean.getForumName())
|
getContext().getString(R.string.title_forum_name, postBean.getForumName())
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
TextView contentTextView = viewHolder.getView(R.id.message_list_item_content);
|
TextView contentTextView = viewHolder.getView(R.id.message_list_item_content);
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ public class PhotoViewFragment extends BaseFragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onImageLoaded() {
|
public void onImageLoaded() {
|
||||||
view.setDoubleTapZoomDpi(80);
|
view.setDoubleTapZoomDpi(160);
|
||||||
view.setDoubleTapZoomDuration(200);
|
view.setDoubleTapZoomDuration(200);
|
||||||
view.setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED);
|
view.setDoubleTapZoomStyle(SubsamplingScaleImageView.ZOOM_FOCUS_FIXED);
|
||||||
view.setQuickScaleEnabled(false);
|
view.setQuickScaleEnabled(false);
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@ class OKSignService : IntentService(TAG), CoroutineScope, ProgressListener {
|
||||||
total
|
total
|
||||||
),
|
),
|
||||||
getString(
|
getString(
|
||||||
R.string.text_forum_name,
|
R.string.title_forum_name,
|
||||||
signDataBean.forumName
|
signDataBean.forumName
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ fun <ItemValue> SingleSelector(
|
||||||
selectedIndicator: @Composable () -> Unit = {
|
selectedIndicator: @Composable () -> Unit = {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Rounded.Check,
|
imageVector = Icons.Rounded.Check,
|
||||||
contentDescription = stringResource(id = R.string.checked)
|
contentDescription = stringResource(id = R.string.desc_checked)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
colors: SelectorColors = SelectorDefaults.selectorColors(),
|
colors: SelectorColors = SelectorDefaults.selectorColors(),
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@
|
||||||
android:layout_below="@id/my_info_grid_follows"
|
android:layout_below="@id/my_info_grid_follows"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:text="关注"
|
android:text="@string/title_follow_num"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
app:tint="@color/default_color_text_secondary" />
|
app:tint="@color/default_color_text_secondary" />
|
||||||
|
|
||||||
|
|
@ -152,7 +152,7 @@
|
||||||
android:layout_below="@id/my_info_grid_fans"
|
android:layout_below="@id/my_info_grid_fans"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:text="粉丝"
|
android:text="@string/title_fans_num"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
app:tint="@color/default_color_text_secondary" />
|
app:tint="@color/default_color_text_secondary" />
|
||||||
|
|
||||||
|
|
@ -191,7 +191,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:text="贴子"
|
android:text="@string/title_posts_num"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
app:tint="@color/default_color_text_secondary" />
|
app:tint="@color/default_color_text_secondary" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<string name="shortcut_my_message">我的消息</string>
|
<string name="shortcut_my_message">我的消息</string>
|
||||||
<string name="shortcut_search">搜索</string>
|
<string name="shortcut_search">搜索</string>
|
||||||
<string name="forum_list_title">关注</string>
|
<string name="forum_list_title">关注</string>
|
||||||
<string name="title_login">登录</string>
|
<string name="title_activity_login">登录</string>
|
||||||
<string name="title_refresh">刷新</string>
|
<string name="title_refresh">刷新</string>
|
||||||
<string name="title_copy_link">复制链接</string>
|
<string name="title_copy_link">复制链接</string>
|
||||||
<string name="toast_copy_success">已复制到剪贴板</string>
|
<string name="toast_copy_success">已复制到剪贴板</string>
|
||||||
|
|
@ -126,7 +126,7 @@
|
||||||
<string name="tip_store_deleted">贴子已被删除</string>
|
<string name="tip_store_deleted">贴子已被删除</string>
|
||||||
<string name="content_top">置顶</string>
|
<string name="content_top">置顶</string>
|
||||||
<string name="tip_forum_header_liked">LV%1$s %2$s</string>
|
<string name="tip_forum_header_liked">LV%1$s %2$s</string>
|
||||||
<string name="text_forum_name">%1$s吧</string>
|
<string name="title_forum_name">%1$s吧</string>
|
||||||
<string name="toast_sign_success">签到成功, 经验 +%1$s。你是今天第 %2$s 个签到的。</string>
|
<string name="toast_sign_success">签到成功, 经验 +%1$s。你是今天第 %2$s 个签到的。</string>
|
||||||
<string name="button_sign_in">签到</string>
|
<string name="button_sign_in">签到</string>
|
||||||
<string name="button_signed">已签到</string>
|
<string name="button_signed">已签到</string>
|
||||||
|
|
@ -541,5 +541,8 @@
|
||||||
<string name="title_modify_nickname">修改昵称</string>
|
<string name="title_modify_nickname">修改昵称</string>
|
||||||
<string name="toast_intro_length_beyond_restrict">你输入的字数超出限制</string>
|
<string name="toast_intro_length_beyond_restrict">你输入的字数超出限制</string>
|
||||||
<string name="title_modify_sex">选择性别</string>
|
<string name="title_modify_sex">选择性别</string>
|
||||||
<string name="checked">已选中</string>
|
<string name="desc_checked">已选中</string>
|
||||||
|
<string name="title_follow_num">关注</string>
|
||||||
|
<string name="title_fans_num">粉丝</string>
|
||||||
|
<string name="title_posts_num">贴子</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue