Add back installed color

This commit is contained in:
NekoInverter 2020-03-05 18:28:39 +08:00
parent ba3f8c4b18
commit ddc79e8e14
No known key found for this signature in database
GPG Key ID: 280D6CCCF95715F9
1 changed files with 2 additions and 2 deletions

View File

@ -346,8 +346,8 @@ public class DownloadActivity extends BaseActivity implements RepoLoader.RepoLis
} else if (isInstalled) {
txtStatus.setText(mContext.getString(
R.string.download_status_installed, installedVersion));
//txtStatus.setTextColor(ThemeUtil.getThemeColor(mContext, R.attr.download_status_installed));
TypedArray typedArray = DownloadActivity.this.getTheme().obtainStyledAttributes(new int[]{android.R.attr.textColorSecondary});
txtStatus.setTextColor(getResources().getColor(R.color.warning));
TypedArray typedArray = DownloadActivity.this.getTheme().obtainStyledAttributes(new int[]{android.R.attr.textColorHighlight});
int textColor = typedArray.getColor(0, 0);
typedArray.recycle();
txtStatus.setTextColor(textColor);