mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	Extra Info in main settings
This commit is contained in:
		
							parent
							
								
									eb60be54ed
								
							
						
					
					
						commit
						ce72f9fe6c
					
				
					 3 changed files with 38 additions and 15 deletions
				
			
		|  | @ -179,6 +179,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") | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ import android.os.Bundle | ||||||
| import android.view.View | import android.view.View | ||||||
| import androidx.preference.PreferenceFragmentCompat | import androidx.preference.PreferenceFragmentCompat | ||||||
| import androidx.preference.PreferenceManager | import androidx.preference.PreferenceManager | ||||||
|  | import com.lagradost.cloudstream3.BuildConfig | ||||||
| import com.lagradost.cloudstream3.R | import com.lagradost.cloudstream3.R | ||||||
| import com.lagradost.cloudstream3.SearchQuality | import com.lagradost.cloudstream3.SearchQuality | ||||||
| import com.lagradost.cloudstream3.mvvm.logError | import com.lagradost.cloudstream3.mvvm.logError | ||||||
|  |  | ||||||
|  | @ -19,7 +19,7 @@ | ||||||
|             android:orientation="vertical"> |             android:orientation="vertical"> | ||||||
| 
 | 
 | ||||||
|             <LinearLayout |             <LinearLayout | ||||||
|                 android:id="@+id/settings_profile" |                 android:id="@id/settings_profile" | ||||||
|                 android:layout_width="match_parent" |                 android:layout_width="match_parent" | ||||||
|                 android:layout_height="wrap_content" |                 android:layout_height="wrap_content" | ||||||
|                 android:orientation="horizontal" |                 android:orientation="horizontal" | ||||||
|  | @ -33,14 +33,14 @@ | ||||||
|                     app:cardCornerRadius="25dp"> |                     app:cardCornerRadius="25dp"> | ||||||
| 
 | 
 | ||||||
|                     <ImageView |                     <ImageView | ||||||
|                         android:id="@+id/settings_profile_pic" |                         android:id="@id/settings_profile_pic" | ||||||
|                         android:layout_width="match_parent" |                         android:layout_width="match_parent" | ||||||
|                         android:layout_height="match_parent" |                         android:layout_height="match_parent" | ||||||
|                         tools:ignore="ContentDescription" /> |                         tools:ignore="ContentDescription" /> | ||||||
|                 </androidx.cardview.widget.CardView> |                 </androidx.cardview.widget.CardView> | ||||||
| 
 | 
 | ||||||
|                 <TextView |                 <TextView | ||||||
|                     android:id="@+id/settings_profile_text" |                     android:id="@id/settings_profile_text" | ||||||
|                     android:layout_width="wrap_content" |                     android:layout_width="wrap_content" | ||||||
|                     android:layout_height="wrap_content" |                     android:layout_height="wrap_content" | ||||||
|                     android:layout_gravity="center_vertical" |                     android:layout_gravity="center_vertical" | ||||||
|  | @ -54,14 +54,14 @@ | ||||||
|             </LinearLayout> |             </LinearLayout> | ||||||
| 
 | 
 | ||||||
|             <TextView |             <TextView | ||||||
|                 android:id="@+id/settings_general" |                 android:id="@id/settings_general" | ||||||
| 
 | 
 | ||||||
|                 style="@style/SettingsItem" |                 style="@style/SettingsItem" | ||||||
|                 android:nextFocusDown="@id/settings_player" |                 android:nextFocusDown="@id/settings_player" | ||||||
|                 android:text="@string/category_general" /> |                 android:text="@string/category_general" /> | ||||||
| 
 | 
 | ||||||
|             <TextView |             <TextView | ||||||
|                 android:id="@+id/settings_player" |                 android:id="@id/settings_player" | ||||||
|                 style="@style/SettingsItem" |                 style="@style/SettingsItem" | ||||||
| 
 | 
 | ||||||
|                 android:nextFocusUp="@id/settings_general" |                 android:nextFocusUp="@id/settings_general" | ||||||
|  | @ -69,7 +69,7 @@ | ||||||
|                 android:text="@string/category_player" /> |                 android:text="@string/category_player" /> | ||||||
| 
 | 
 | ||||||
|             <TextView |             <TextView | ||||||
|                 android:id="@+id/settings_providers" |                 android:id="@id/settings_providers" | ||||||
|                 style="@style/SettingsItem" |                 style="@style/SettingsItem" | ||||||
| 
 | 
 | ||||||
|                 android:nextFocusUp="@id/settings_player" |                 android:nextFocusUp="@id/settings_player" | ||||||
|  | @ -77,7 +77,7 @@ | ||||||
|                 android:text="@string/category_providers" /> |                 android:text="@string/category_providers" /> | ||||||
| 
 | 
 | ||||||
|             <TextView |             <TextView | ||||||
|                 android:id="@+id/settings_ui" |                 android:id="@id/settings_ui" | ||||||
|                 style="@style/SettingsItem" |                 style="@style/SettingsItem" | ||||||
| 
 | 
 | ||||||
|                 android:nextFocusUp="@id/settings_providers" |                 android:nextFocusUp="@id/settings_providers" | ||||||
|  | @ -85,7 +85,7 @@ | ||||||
|                 android:text="@string/category_ui" /> |                 android:text="@string/category_ui" /> | ||||||
| 
 | 
 | ||||||
|             <TextView |             <TextView | ||||||
|                 android:id="@+id/settings_updates" |                 android:id="@id/settings_updates" | ||||||
|                 style="@style/SettingsItem" |                 style="@style/SettingsItem" | ||||||
| 
 | 
 | ||||||
|                 android:nextFocusUp="@id/settings_ui" |                 android:nextFocusUp="@id/settings_ui" | ||||||
|  | @ -93,19 +93,19 @@ | ||||||
|                 android:text="@string/category_updates" /> |                 android:text="@string/category_updates" /> | ||||||
| 
 | 
 | ||||||
|             <TextView |             <TextView | ||||||
|                 android:id="@+id/settings_credits" |                 android:id="@id/settings_credits" | ||||||
|                 style="@style/SettingsItem" |                 style="@style/SettingsItem" | ||||||
|                 android:nextFocusUp="@id/settings_updates" |                 android:nextFocusUp="@id/settings_updates" | ||||||
|                 android:text="@string/category_account" /> |                 android:text="@string/category_account" /> | ||||||
| 
 | 
 | ||||||
|             <TextView |             <TextView | ||||||
|                 android:id="@+id/settings_extensions" |                 android:id="@id/settings_extensions" | ||||||
|                 style="@style/SettingsItem" |                 style="@style/SettingsItem" | ||||||
|                 android:nextFocusUp="@id/settings_credits" |                 android:nextFocusUp="@id/settings_credits" | ||||||
|                 android:text="@string/extensions" /> |                 android:text="@string/extensions" /> | ||||||
| 
 | 
 | ||||||
|             <LinearLayout |             <LinearLayout | ||||||
|                 android:id="@+id/app_version_info" |                 android:id="@id/app_version_info" | ||||||
|                 android:layout_width="wrap_content" |                 android:layout_width="wrap_content" | ||||||
|                 android:layout_height="match_parent" |                 android:layout_height="match_parent" | ||||||
|                 android:layout_gravity="center" |                 android:layout_gravity="center" | ||||||
|  | @ -120,7 +120,7 @@ | ||||||
|                     android:textColor="?attr/textColor" /> |                     android:textColor="?attr/textColor" /> | ||||||
| 
 | 
 | ||||||
|                 <TextView |                 <TextView | ||||||
|                     android:id="@+id/textView3" |                     android:id="@id/textView3" | ||||||
|                     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" | ||||||
|  | @ -129,13 +129,32 @@ | ||||||
|                     android:textColor="?attr/textColor" /> |                     android:textColor="?attr/textColor" /> | ||||||
| 
 | 
 | ||||||
|                 <TextView |                 <TextView | ||||||
|                     android:id="@+id/commit_hash" |                     android:id="@id/commit_hash" | ||||||
|                     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" | ||||||
|                     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/textView4" | ||||||
|  |                     android:layout_width="wrap_content" | ||||||
|  |                     android:layout_height="wrap_content" | ||||||
|  |                     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:text="" | ||||||
|  |                     android:textColor="?attr/textColor" /> | ||||||
|             </LinearLayout> |             </LinearLayout> | ||||||
| 
 | 
 | ||||||
|         </LinearLayout> |         </LinearLayout> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue