diff --git a/Whooby/app/src/main/java/com/example/whooby/MainActivity.kt b/Whooby/app/src/main/java/com/example/whooby/MainActivity.kt index 9718297b..b61b23ef 100644 --- a/Whooby/app/src/main/java/com/example/whooby/MainActivity.kt +++ b/Whooby/app/src/main/java/com/example/whooby/MainActivity.kt @@ -1,16 +1,11 @@ package com.example.whooby -import CustomAdapter import android.os.Bundle import android.speech.tts.TextToSpeech import android.util.Log import android.view.View -import android.view.animation.AlphaAnimation -import android.view.animation.Animation import android.widget.* import androidx.appcompat.app.AppCompatActivity -import androidx.recyclerview.widget.LinearLayoutManager -import androidx.recyclerview.widget.RecyclerView import java.util.* import com.google.firebase.database.DataSnapshot import com.google.firebase.database.DatabaseError @@ -159,6 +154,10 @@ class MainActivity : AppCompatActivity(), TextToSpeech.OnInitListener,AdapterVie override fun onNothingSelected(p0: AdapterView<*>?) { TODO("Not yet implemented") } + override fun onBackPressed() { + super.onBackPressed() + overridePendingTransition(R.anim.empty,R.anim.zoom_out) + } } \ No newline at end of file diff --git a/Whooby/app/src/main/java/com/example/whooby/opening.kt b/Whooby/app/src/main/java/com/example/whooby/opening.kt index 9cc4d77b..002d5e85 100644 --- a/Whooby/app/src/main/java/com/example/whooby/opening.kt +++ b/Whooby/app/src/main/java/com/example/whooby/opening.kt @@ -115,7 +115,7 @@ class Opening : AppCompatActivity() { val whooby = findViewById