Compare commits
No commits in common. "348395c48da26aae77f4cd87aff3b96dc57fa866" and "ca0085e14733906ad20474b8246633b91df272b3" have entirely different histories.
348395c48d
...
ca0085e147
4 changed files with 3 additions and 9 deletions
|
@ -7,7 +7,6 @@ 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
|
||||||
|
@ -53,16 +52,11 @@ 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", "HEAD")
|
commandLine("git", "rev-list", "--first-parent", "--count", "master")
|
||||||
standardOutput = stdout
|
standardOutput = stdout
|
||||||
}
|
}
|
||||||
stdout.toString("utf-8").trim('\n').toInt()
|
stdout.toString("utf-8").trim('\n').toInt()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit dc09c3e668fc191694e73fede255a7a0a26f4988
|
Subproject commit 47f44f911099bffdbdb4854500578ba18ab19d06
|
|
@ -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_list_free_all(info);
|
es10c_profile_info_free_all(info);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue