0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-22 19:25:11 +00:00

Updated dependencies

This commit is contained in:
X1nto 2020-04-04 16:31:38 +04:00
parent ab69f14b5b
commit f3a80e3176
6 changed files with 25 additions and 22 deletions

View file

@ -50,7 +50,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.2.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.fragment:fragment-ktx:1.2.3'
implementation 'androidx.fragment:fragment-ktx:1.2.4'
implementation 'androidx.preference:preference-ktx:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.browser:browser:1.2.0'

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vanced.manager">
package="com.vanced.manager" >
<application
android:allowBackup="true"
@ -10,6 +10,7 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true">
<activity
android:name=".SplashScreenActivity"
android:label="@string/app_name"
@ -20,18 +21,18 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.MainActivity"
android:label="@string/app_name"
android:theme="@style/Theme.MaterialComponents.DayNight.NoActionBar">
</activity>
<activity
android:name=".ui.AboutActivity"
android:parentActivityName=".ui.MainActivity"
android:label="@string/app_name"
android:theme="@style/Theme.MaterialComponents.DayNight.NoActionBar">
</activity>
<meta-data

View file

@ -75,6 +75,7 @@ class HomeFragment : Fragment() {
val git3btn = getView()?.findViewById(R.id.github_websitebtn) as Button
val microgStatus = pm?.let { isMicrogInstalled("com.mgoogle.android.gms", it) }
if (microgStatus == true) {
microgsettingsbtn.setOnClickListener {
val intent = Intent()
@ -96,7 +97,7 @@ class HomeFragment : Fragment() {
customTabsIntent.launchUrl(requireContext(), Uri.parse(braveurl))
}
websitebtn.setOnClickListener {
val vancedurl = "https://newpipe.schabi.org"
val vancedurl = "https://vanced.app"
builder.setToolbarColor(ContextCompat.getColor(requireContext(), R.color.Vanced))
val customTabsIntent = builder.build()
customTabsIntent.launchUrl(requireContext(), Uri.parse(vancedurl))

View file

@ -21,7 +21,7 @@ class AboutActivity : AppCompatActivity() {
mattisLigma.setOnClickListener{
val ligmaurl = "https://youtu.be/LDU_Txk06tM"
val builder = CustomTabsIntent.Builder()
builder.setToolbarColor(ContextCompat.getColor(this, R.color.Vanced))
builder.setToolbarColor(ContextCompat.getColor(this, R.color.YT))
val customTabsIntent = builder.build()
customTabsIntent.launchUrl(this, Uri.parse(ligmaurl))
}

View file

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="white">#ffffff</color>
<color name="Vanced">#8B0B0B</color>
<color name="Vanced">#673AB7</color>
<color name="YT">#8B0B0B</color>
<color name="Brave">#FF0000</color>
<color name="Discord">#7289DA</color>
<color name="Twitter">#1DA1F2</color>

View file

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<resources>
<!-- Main Activity -->
@ -5,29 +6,28 @@
<string name="settings">Settings</string>
<!-- Home Page -->
<string name="about">About</string>
<string name="brave_browser">Brave Browser</string>
<string name="changelogs">Changelogs</string>
<string name="github_bot">Bot</string>
<string name="github_manager">Manager</string>
<string name="github_projects">GitHub projects</string>
<string name="github_website">Website</string>
<string name="install">Install</string>
<string name="installed">Installed:</string>
<string name="latest">Latest:</string>
<string name="n_a">N/A</string>
<string name="reddit">Reddit</string>
<string name="uninstall">Uninstall</string>
<string name="update">Update</string>
<string name="latest">Latest:</string>
<string name="installed">Installed:</string>
<string name="n_a">N/A</string>
<string name="github_projects">GitHub projects</string>
<string name="useful_links">Useful Links</string>
<string name="vanced_medias">Vanced on Social Medias</string>
<string name="website">Website</string>
<string name="brave_browser">Brave Browser</string>
<string name="support_us">Support us by downloading Brave</string>
<string name="useful_links">Useful Links</string>
<string name="reddit">Reddit</string>
<string name="website_text">The official website of Vanced</string>
<string name="github_manager">Manager</string>
<string name="github_bot">Bot</string>
<string name="github_website">Website</string>
<string name="changelogs">Changelogs</string>
<string name="about">About</string>
<string name="support_us">Support us by downloading Brave</string>
<!-- Settings -->
<string name="theme">Theme</string>
</resources>