Compare commits
3 commits
ca0085e147
...
348395c48d
Author | SHA1 | Date | |
---|---|---|---|
348395c48d | |||
124d1690ab | |||
8ee3c53492 |
4 changed files with 9 additions and 3 deletions
|
@ -7,6 +7,7 @@ import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import android.widget.TextView
|
import android.widget.TextView
|
||||||
import androidx.appcompat.app.AppCompatActivity
|
import androidx.appcompat.app.AppCompatActivity
|
||||||
|
import androidx.core.view.children
|
||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import androidx.recyclerview.widget.DividerItemDecoration
|
import androidx.recyclerview.widget.DividerItemDecoration
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
|
@ -52,11 +53,16 @@ class CompatibilityCheckActivity: AppCompatActivity() {
|
||||||
inner class ViewHolder(private val root: View): RecyclerView.ViewHolder(root) {
|
inner class ViewHolder(private val root: View): RecyclerView.ViewHolder(root) {
|
||||||
private val titleView: TextView = root.findViewById(R.id.compatibility_check_title)
|
private val titleView: TextView = root.findViewById(R.id.compatibility_check_title)
|
||||||
private val descView: TextView = root.findViewById(R.id.compatibility_check_desc)
|
private val descView: TextView = root.findViewById(R.id.compatibility_check_desc)
|
||||||
|
private val statusContainer: ViewGroup = root.findViewById(R.id.compatibility_check_status_container)
|
||||||
|
|
||||||
fun bindItem(item: CompatibilityCheck) {
|
fun bindItem(item: CompatibilityCheck) {
|
||||||
titleView.text = item.title
|
titleView.text = item.title
|
||||||
descView.text = item.description
|
descView.text = item.description
|
||||||
|
|
||||||
|
statusContainer.children.forEach {
|
||||||
|
it.visibility = View.GONE
|
||||||
|
}
|
||||||
|
|
||||||
when (item.state) {
|
when (item.state) {
|
||||||
CompatibilityCheck.State.SUCCESS -> {
|
CompatibilityCheck.State.SUCCESS -> {
|
||||||
root.findViewById<View>(R.id.compatibility_check_checkmark).visibility = View.VISIBLE
|
root.findViewById<View>(R.id.compatibility_check_checkmark).visibility = View.VISIBLE
|
||||||
|
|
|
@ -12,7 +12,7 @@ val Project.gitVersionCode: Int
|
||||||
try {
|
try {
|
||||||
val stdout = ByteArrayOutputStream()
|
val stdout = ByteArrayOutputStream()
|
||||||
exec {
|
exec {
|
||||||
commandLine("git", "rev-list", "--first-parent", "--count", "master")
|
commandLine("git", "rev-list", "--first-parent", "--count", "HEAD")
|
||||||
standardOutput = stdout
|
standardOutput = stdout
|
||||||
}
|
}
|
||||||
stdout.toString("utf-8").trim('\n').toInt()
|
stdout.toString("utf-8").trim('\n').toInt()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 47f44f911099bffdbdb4854500578ba18ab19d06
|
Subproject commit dc09c3e668fc191694e73fede255a7a0a26f4988
|
|
@ -236,7 +236,7 @@ Java_net_typeblog_lpac_1jni_LpacJni_es10cGetProfilesInfo(JNIEnv *env, jobject th
|
||||||
(*env)->DeleteLocalRef(env, jinfo);
|
(*env)->DeleteLocalRef(env, jinfo);
|
||||||
});
|
});
|
||||||
|
|
||||||
es10c_profile_info_free_all(info);
|
es10c_profile_info_list_free_all(info);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue