Skip to content

Commit

Permalink
Deprecated cataas.com API due to downtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ayanchavand committed Dec 27, 2023
1 parent 2a1b8b1 commit acc1c91
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions app/src/main/java/com/example/app/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import android.util.Log
import android.widget.Button
import android.widget.ImageButton
import android.widget.ImageView
import android.widget.Switch
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
Expand All @@ -31,13 +30,10 @@ class MainActivity : AppCompatActivity() {
val image: ImageView = findViewById(R.id.image)
val submitCat: Button = findViewById(R.id.submitCat)
val submitDog: Button = findViewById(R.id.submitDog)
val apiToggle: Switch = findViewById(R.id.apiToggle)
val apiText: TextView = findViewById(R.id.apiText)
val download: ImageButton = findViewById(R.id.download)
val like: Button = findViewById(R.id.like)

var URL: String = ""

catViewModel = ViewModelProvider(this)[CatViewModel::class.java]

// Function to display Toast messages
Expand Down
12 changes: 0 additions & 12 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@
app:layout_constraintTop_toBottomOf="@+id/image"
app:layout_constraintVertical_bias="0.0" />

<Switch
android:id="@+id/apiToggle"
android:layout_width="130dp"
android:layout_height="60dp"
android:text="API Toggle "
android:textAlignment="center"
android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/submitCat"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView" />

<TextView
android:id="@+id/apiText"
android:layout_width="190dp"
Expand Down

0 comments on commit acc1c91

Please sign in to comment.