Skip to content

Commit

Permalink
settings resize switch
Browse files Browse the repository at this point in the history
load state visibility text fix
  • Loading branch information
SergeyRF committed Sep 26, 2019
1 parent e246b30 commit 6064bbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.sergey.shlypa2.R
import com.example.sergey.shlypa2.RvAdapter
import com.example.sergey.shlypa2.extensions.gone
import com.example.sergey.shlypa2.extensions.observeSafe
import com.example.sergey.shlypa2.extensions.show
import com.example.sergey.shlypa2.game.Game
Expand Down Expand Up @@ -58,6 +59,7 @@ class LoadStateFragment : androidx.fragment.app.Fragment() {
tvNoSavedGames.show()
} else {
adapter.setData(it)
tvNoSavedGames.gone()
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/fragment_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
<com.example.sergey.shlypa2.views.SwitchSetting
android:id="@+id/ssPrefSound"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="10dp"
app:layout_constraintBottom_toTopOf="@id/view"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:switch_setting_title="@string/enable_sound_title" />

<View
Expand Down

0 comments on commit 6064bbe

Please sign in to comment.