diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoActivity.java index ddda0729..de8faf00 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoActivity.java @@ -23,6 +23,7 @@ package io.github.lsposed.manager.ui.activity; import android.content.Intent; import android.os.Bundle; import android.os.Parcelable; +import android.text.SpannableStringBuilder; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.Menu; @@ -139,12 +140,13 @@ public class RepoActivity extends BaseActivity implements RepoLoader.Listener { public void onBindViewHolder(@NonNull ViewHolder holder, int position) { OnlineModule module = showList.get(position); holder.appName.setText(module.getDescription()); + SpannableStringBuilder sb = new SpannableStringBuilder(module.getName()); String summary = module.getSummary(); if (summary != null) { - holder.appDescription.setText(module.getSummary()); - } else { - holder.appDescription.setVisibility(View.GONE); + sb.append("\n"); + sb.append(summary); } + holder.appDescription.setText(sb); holder.itemView.setOnClickListener(v -> { Intent intent = new Intent(); intent.setClass(RepoActivity.this, RepoItemActivity.class); diff --git a/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoItemActivity.java b/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoItemActivity.java index 90757f99..62918f93 100644 --- a/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoItemActivity.java +++ b/app/src/main/java/io/github/lsposed/manager/ui/activity/RepoItemActivity.java @@ -190,11 +190,9 @@ public class RepoItemActivity extends BaseActivity { } } if (position == 0) { - binding.appBar.setLiftOnScrollTargetViewId(R.id.scrollView); holder.textView.setTransformationMethod(new LinkTransformationMethod(RepoItemActivity.this)); markwon.setMarkdown(holder.textView, module.getReadme()); } else { - binding.appBar.setLiftOnScrollTargetViewId(R.id.recyclerView); ReleaseAdapter adapter = new ReleaseAdapter(module.getReleases()); holder.recyclerView.setAdapter(adapter); holder.recyclerView.setLayoutManager(new LinearLayoutManagerFix(RepoItemActivity.this));