Commit 1468dfd6 authored by d8ahazard's avatar d8ahazard

Add CacheModule display string to title

parent 40e92721
......@@ -93,8 +93,15 @@ public class ReposAdapter extends RecyclerView.Adapter<ReposAdapter.ViewHolder>
private void SetupViewElements() {
int mPosition = mHolder.getAdapterPosition();
String titleString;
if (repo.getId() != null) {
mHolder.title.setText(repo.getName());
if (repo.isCacheModule()) {
titleString = "[Cache] " + repo.getName();
} else {
titleString = repo.getName();
}
mHolder.title.setText(titleString);
mHolder.versionName.setText(repo.getmVersion());
mHolder.description.setText(repo.getDescription());
String authorString = this.context.getResources().getString(R.string.author) + " " + repo.getmAuthor();
......
......@@ -31,7 +31,7 @@ public class Repo {
private String mDonateUrl;
private String lastUpdate;
private Context appContext;
private boolean mIsInstalled,mCanUpdate;
private boolean mIsInstalled,mCanUpdate,mIsCacheModule;
public Repo(String manifestString, Context context) {
......@@ -133,6 +133,9 @@ public class Repo {
case "donate":
this.mDonateUrl = props[1];
break;
case "cacheModule":
this.mIsCacheModule = Boolean.valueOf(props[1]);
break;
case "support":
this.mSupportUrl = props[1];
break;
......@@ -261,5 +264,6 @@ public class Repo {
public boolean isInstalled() { return mIsInstalled; }
public boolean canUpdate() { return mCanUpdate; }
public boolean isCacheModule() { return mIsCacheModule; }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment