mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
add build-date to main_settings (#995)
This commit is contained in:
parent
eb60be54ed
commit
1ff0b5dccd
2 changed files with 24 additions and 1 deletions
|
@ -14,6 +14,7 @@ import androidx.preference.Preference
|
||||||
import androidx.preference.PreferenceFragmentCompat
|
import androidx.preference.PreferenceFragmentCompat
|
||||||
import com.google.android.material.appbar.AppBarLayout
|
import com.google.android.material.appbar.AppBarLayout
|
||||||
import com.google.android.material.appbar.MaterialToolbar
|
import com.google.android.material.appbar.MaterialToolbar
|
||||||
|
import com.lagradost.cloudstream3.BuildConfig
|
||||||
import com.lagradost.cloudstream3.R
|
import com.lagradost.cloudstream3.R
|
||||||
import com.lagradost.cloudstream3.databinding.MainSettingsBinding
|
import com.lagradost.cloudstream3.databinding.MainSettingsBinding
|
||||||
import com.lagradost.cloudstream3.mvvm.logError
|
import com.lagradost.cloudstream3.mvvm.logError
|
||||||
|
@ -179,6 +180,9 @@ class SettingsFragment : Fragment() {
|
||||||
|
|
||||||
val appVersion = getString(R.string.app_version)
|
val appVersion = getString(R.string.app_version)
|
||||||
val commitInfo = getString(R.string.commit_hash)
|
val commitInfo = getString(R.string.commit_hash)
|
||||||
|
val buildDate = BuildConfig.BUILDDATE
|
||||||
|
|
||||||
|
binding?.buildDate?.text = buildDate
|
||||||
|
|
||||||
binding?.appVersionInfo?.setOnLongClickListener{
|
binding?.appVersionInfo?.setOnLongClickListener{
|
||||||
clipboardHelper(txt(R.string.extension_version), "$appVersion $commitInfo")
|
clipboardHelper(txt(R.string.extension_version), "$appVersion $commitInfo")
|
||||||
|
|
|
@ -120,7 +120,7 @@
|
||||||
android:textColor="?attr/textColor" />
|
android:textColor="?attr/textColor" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textView3"
|
android:id="@+id/delimiter0"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
|
@ -136,6 +136,25 @@
|
||||||
android:padding="10dp"
|
android:padding="10dp"
|
||||||
android:text="@string/commit_hash"
|
android:text="@string/commit_hash"
|
||||||
android:textColor="?attr/textColor" />
|
android:textColor="?attr/textColor" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/delimiter1"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:text="•"
|
||||||
|
android:textColor="?attr/textColor" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/build_date"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="10dp"
|
||||||
|
android:textColor="?attr/textColor" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
Loading…
Reference in a new issue