mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	fix some issues
This commit is contained in:
		
							parent
							
								
									3c1349c8a8
								
							
						
					
					
						commit
						a70f26e5b1
					
				
					 2 changed files with 15 additions and 7 deletions
				
			
		|  | @ -71,10 +71,10 @@ android { | |||
|         // Reads local.properties | ||||
|         val localProperties = gradleLocalProperties(rootDir) | ||||
| 
 | ||||
|         buildConfigField ( | ||||
|             "String", | ||||
|             "BUILDDATE", | ||||
|             "\"${SimpleDateFormat("dd/MM/yy hh:mm a").format(Date())}\"" | ||||
|         buildConfigField( | ||||
|             "long", | ||||
|             "BUILD_DATE", | ||||
|             "${System.currentTimeMillis()}" | ||||
|         ) | ||||
|         buildConfigField( | ||||
|             "String", | ||||
|  |  | |||
|  | @ -30,6 +30,11 @@ import com.lagradost.cloudstream3.utils.UIHelper.navigate | |||
| import com.lagradost.cloudstream3.utils.UIHelper.setImage | ||||
| import com.lagradost.cloudstream3.utils.UIHelper.toPx | ||||
| import java.io.File | ||||
| import java.text.DateFormat | ||||
| import java.text.SimpleDateFormat | ||||
| import java.util.Date | ||||
| import java.util.Locale | ||||
| import java.util.TimeZone | ||||
| 
 | ||||
| class SettingsFragment : Fragment() { | ||||
|     companion object { | ||||
|  | @ -180,11 +185,14 @@ class SettingsFragment : Fragment() { | |||
| 
 | ||||
|         val appVersion = getString(R.string.app_version) | ||||
|         val commitInfo = getString(R.string.commit_hash) | ||||
|         val buildDate = BuildConfig.BUILDDATE | ||||
|         val buildTimestamp = SimpleDateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, | ||||
|             Locale.getDefault() | ||||
|         ).apply { timeZone = TimeZone.getTimeZone("UTC") | ||||
|         }.format(Date(BuildConfig.BUILD_DATE)).replace("UTC", "") | ||||
| 
 | ||||
|         binding?.buildDate?.text = buildDate | ||||
|         binding?.buildDate?.text = buildTimestamp | ||||
|         binding?.appVersionInfo?.setOnLongClickListener { | ||||
|             clipboardHelper(txt(R.string.extension_version), "$appVersion $commitInfo $buildDate") | ||||
|             clipboardHelper(txt(R.string.extension_version), "$appVersion $commitInfo $buildTimestamp") | ||||
|             true | ||||
|         } | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue