mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Add link to website and open source licenses
This commit is contained in:
		| @@ -119,6 +119,13 @@ | ||||
|             android:name=".extension.util.ExtensionInstallActivity" | ||||
|             android:theme="@android:style/Theme.Translucent.NoTitleBar" /> | ||||
|  | ||||
|         <activity | ||||
|             android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity" | ||||
|             android:theme="@style/Theme.MaterialComponents" /> | ||||
|         <activity | ||||
|             android:name="com.google.android.gms.oss.licenses.OssLicensesActivity" | ||||
|             android:theme="@style/Theme.MaterialComponents" /> | ||||
|  | ||||
|         <provider | ||||
|             android:name="androidx.core.content.FileProvider" | ||||
|             android:authorities="${applicationId}.provider" | ||||
|   | ||||
| @@ -6,6 +6,7 @@ import android.net.Uri | ||||
| import android.os.Bundle | ||||
| import androidx.preference.PreferenceScreen | ||||
| import com.afollestad.materialdialogs.MaterialDialog | ||||
| import com.google.android.gms.oss.licenses.OssLicensesMenuActivity | ||||
| import eu.kanade.tachiyomi.BuildConfig | ||||
| import eu.kanade.tachiyomi.R | ||||
| import eu.kanade.tachiyomi.data.preference.PreferenceKeys as Keys | ||||
| @@ -72,6 +73,15 @@ class AboutController : SettingsController() { | ||||
|                 isVisible = false | ||||
|             } | ||||
|         } | ||||
|         preference { | ||||
|             titleRes = R.string.website | ||||
|             val url = "https://tachiyomi.org" | ||||
|             summary = url | ||||
|             onClick { | ||||
|                 val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url)) | ||||
|                 startActivity(intent) | ||||
|             } | ||||
|         } | ||||
|         preference { | ||||
|             title = "Discord" | ||||
|             val url = "https://discord.gg/tachiyomi" | ||||
| @@ -109,6 +119,13 @@ class AboutController : SettingsController() { | ||||
|                 ChangelogDialogController().showDialog(router) | ||||
|             } | ||||
|         } | ||||
|         preference { | ||||
|             titleRes = R.string.licenses | ||||
|  | ||||
|             onClick { | ||||
|                 startActivity(Intent(activity, OssLicensesMenuActivity::class.java)) | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -350,10 +350,12 @@ | ||||
|     <string name="battery_optimization_disabled">Battery optimization is already disabled</string> | ||||
|  | ||||
|       <!-- About section --> | ||||
|     <string name="website">Website</string> | ||||
|     <string name="version">Version</string> | ||||
|     <string name="build_time">Build time</string> | ||||
|     <string name="notices">Notices</string> | ||||
|     <string name="changelog">Changelog</string> | ||||
|     <string name="licenses">Open source licenses</string> | ||||
|     <string name="pref_enable_automatic_updates">Check for updates</string> | ||||
|     <string name="pref_enable_automatic_updates_summary">Automatically check for new app versions</string> | ||||
|     <!-- ACRA --> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user