Skip to content

Commit

Permalink
fix-bug-and-change-icon-application
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdirzfx committed Jun 10, 2023
1 parent 9b50056 commit f425c7b
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 41 deletions.
10 changes: 5 additions & 5 deletions app/src/main/java/com/weatherForecast/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val btn_Search = findViewById<FloatingActionButton>(R.id.btn_search)
val et_Location = findViewById<EditText>(R.id.et_location)
val btnSearch = findViewById<FloatingActionButton>(R.id.btn_search)
val etLocation = findViewById<EditText>(R.id.et_location)
getData("کرج", "fa", "metric")
btn_Search.setOnClickListener {
if (et_Location.text.equals("")) {
btnSearch.setOnClickListener {
if (etLocation.text.equals("")) {
Toast.makeText(this, "لطفا نام یک شهر را وارد کنید.", Toast.LENGTH_SHORT).show()
} else {
val cityName = et_Location.text.toString()
val cityName = etLocation.text.toString()
val lang = "fa"
val units = "metric"
getData(cityName, lang, units)
Expand Down
30 changes: 0 additions & 30 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml

This file was deleted.

6 changes: 0 additions & 6 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

This file was deleted.

Binary file added app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.

0 comments on commit f425c7b

Please sign in to comment.