Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d55b251c3 | |||
| 386c7b19c1 | |||
| eaaa168ee1 | |||
| d9f5811d86 | |||
| 27d3470abc | |||
| 36f7427613 | |||
| 929c117ddb | |||
| 7d6d77fae5 | |||
| 2297461d91 | |||
| a26a3bebad | |||
| 4a673de424 | |||
| a837c2ccd4 | |||
| 10ee3132fd |
@ -90,7 +90,8 @@ public class ExpendTextView extends android.support.v7.widget.AppCompatTextView
|
||||
SpannableStringBuilder msp = new SpannableStringBuilder(content);
|
||||
int length = msp.length();
|
||||
int startPosition = length - mExpendText.length();
|
||||
msp.replace(startPosition < 0 ? 0 : startPosition, length, mExpendText);
|
||||
startPosition = startPosition < 0 ? 0 : startPosition;
|
||||
msp.replace(startPosition, length, mExpendText);
|
||||
msp.setSpan(new ClickableSpan() {
|
||||
@Override
|
||||
public void updateDrawState(TextPaint ds) {
|
||||
@ -109,7 +110,7 @@ public class ExpendTextView extends android.support.v7.widget.AppCompatTextView
|
||||
mExpandCallback.onExpand();
|
||||
}
|
||||
}
|
||||
}, length - mExpendText.length(), length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
}, startPosition, length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
|
||||
setText(msp);
|
||||
setMovementMethod(CustomLinkMovementMethod.getInstance());
|
||||
|
||||
@ -306,7 +306,7 @@ public class MainActivity extends BaseActivity {
|
||||
"玩家操作", "点击关闭"));
|
||||
}
|
||||
|
||||
checkTinkerPath();
|
||||
// checkTinkerPath(); // todo 看情况是否需要显示弹窗
|
||||
|
||||
checkRetryDownload();
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
package com.gh.gamecenter.collection
|
||||
|
||||
import android.app.Application
|
||||
import anet.channel.util.Utils.context
|
||||
import com.gh.common.history.HistoryDatabase
|
||||
import com.gh.gamecenter.R
|
||||
import com.gh.gamecenter.baselist.ListViewModel
|
||||
@ -28,7 +27,7 @@ class CommunityArticleViewModel(application: Application) : ListViewModel<Articl
|
||||
|
||||
override fun provideDataSingle(page: Int): Single<List<ArticleEntity>> {
|
||||
return if (type == CommunityArticleFragment.Type.COLLECTION) {
|
||||
Single.fromObservable(RetrofitManager.getInstance(context).api.getCollectionCommunityArticle(UserManager.getInstance().userId, page))
|
||||
Single.fromObservable(RetrofitManager.getInstance(getApplication()).api.getCollectionCommunityArticle(UserManager.getInstance().userId, page))
|
||||
} else {
|
||||
HistoryDatabase.instance.articleDao().getArticleWithOffset(20, (page - 1) * 20)
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ class RatingReplyAdapter(context: Context,
|
||||
if (game.getApk().size == 0) {
|
||||
setBackgroundResource(R.drawable.news_detail_comment)
|
||||
text = "暂无"
|
||||
setTextColor(ContextCompat.getColor(anet.channel.util.Utils.context, R.color.button_gray))
|
||||
setTextColor(ContextCompat.getColor(mContext, R.color.button_gray))
|
||||
isClickable = false
|
||||
} else if (game.getApk().size == 1) {
|
||||
GameUtils.setDownloadBtnStatus(mContext, game, this, PluginLocation.only_game)
|
||||
|
||||
@ -1560,7 +1560,7 @@ public interface ApiService {
|
||||
/**
|
||||
* 百度ocpc激活
|
||||
*/
|
||||
@POST("app:activate")
|
||||
@POST("./app:activate")
|
||||
Observable<ResponseBody> postActivationInfo();
|
||||
|
||||
@GET("users/{user_id}/messages/{resource_id}/fold-list")
|
||||
|
||||
@ -7,8 +7,8 @@ ext {
|
||||
targetSdkVersion = 26
|
||||
|
||||
// application info
|
||||
versionCode = 90
|
||||
versionName = "3.6.4"
|
||||
versionCode = 91
|
||||
versionName = "3.6.5"
|
||||
applicationId = "com.gh.gamecenter"
|
||||
|
||||
//Libraries
|
||||
|
||||
@ -60,5 +60,5 @@ DATA_HOST=http\://data.ghzs666.com/
|
||||
|
||||
# 请不要手动改动下面的值,除非你明确需要以某个apk作为基准包,需要打包请以scripts/tinker*.sh为准
|
||||
TINKER_ENABLE=
|
||||
TINKER_ID=de1b5ba2
|
||||
TINKER_BASE_APK_DIR=app-0530-16-04-38_de1b5ba2
|
||||
TINKER_ID=386c7b19
|
||||
TINKER_BASE_APK_DIR=app-0603-17-52-20_386c7b19
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
# @2019.05.30
|
||||
|
||||
version=$(awk -v FS="versionName = " 'NF>1{print $2}' dependencies.gradle | sed "s/\"//g")
|
||||
build_time=$(date +'%Y-%m%d-%H%M')
|
||||
build_time_without_divider=$(date +'%Y%m%d%H%M')L
|
||||
build_time=$(TZ=Asia/Shanghai date +'%Y-%m%d-%H%M')
|
||||
build_time_without_divider=$(TZ=Asia/Shanghai date +'%Y%m%d%H%M')L
|
||||
|
||||
git checkout app/build.gradle
|
||||
git checkout gradle.properties
|
||||
|
||||
Reference in New Issue
Block a user