Skip to content

Commit

Permalink
Convert update check button to source code link
Browse files Browse the repository at this point in the history
  • Loading branch information
TacoTheDank committed Apr 12, 2021
1 parent c06a7b9 commit 1d60de2
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 117 deletions.
10 changes: 0 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ android {
preDexLibraries true
}

flavorDimensions "distro"
productFlavors {
fdroid {
dimension "distro"
}
github {
dimension "distro"
}
}

buildTypes {
release {
minifyEnabled true
Expand Down
44 changes: 0 additions & 44 deletions app/src/fdroid/java/tk/wasdennnoch/scoop/ui/AboutActivity.kt

This file was deleted.

56 changes: 0 additions & 56 deletions app/src/fdroid/res/layout/activity_about.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ class AboutActivity : AppCompatActivity() {
// No.
}

binding.aboutUpdates.setOnClickListener {
binding.aboutGithub.setOnClickListener {
val i = Intent(
Intent.ACTION_VIEW,
"https://github.com/TacoTheDank/Scoop/releases".toUri()
"https://github.com/TacoTheDank/Scoop".toUri()
)
startActivity(i)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
android:textColor="?android:textColorTertiary" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/about_updates"
android:id="@+id/about_github"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="16dp"
android:background="@android:color/transparent"
android:text="@string/about_updates"
android:text="@string/about_github"
android:textColor="@color/colorAccent" />

</LinearLayout>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<!-- About screen -->
<string name="about_author">Programmiert von %1$s</string>
<string name="about_version">Version %1$s (%2$d)</string>
<string name="about_updates">Check for updates</string>
<string name="about_github">Source code</string>

<!-- Notification channels -->
<string name="crash_channel">Application crashes</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<!-- About screen -->
<string name="about_author">Desenvolvido por %1$s</string>
<string name="about_version">Versão %1$s (%2$d)</string>
<string name="about_updates">Check for updates</string>
<string name="about_github">Source code</string>

<!-- Notification channels -->
<string name="crash_channel">Application crashes</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<!-- About screen -->
<string name="about_author">Developed by %1$s</string>
<string name="about_version">Version %1$s (%2$d)</string>
<string name="about_updates">Check for updates</string>
<string name="about_github">Source code</string>

<!-- Notification channels -->
<string name="crash_channel">Application crashes</string>
Expand Down

0 comments on commit 1d60de2

Please sign in to comment.