Skip to content

Commit

Permalink
Merge pull request #166 from braille-systems/hotfix/settings-nav
Browse files Browse the repository at this point in the history
0.6.1 Hotfix/settings nav
  • Loading branch information
zuevval authored May 18, 2020
2 parents 5c41c28 + 11ec345 commit f201fd8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ android {
applicationId "com.github.braillesystems.learnbraille"
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "0.6.0"
versionCode 2
versionName "0.6.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
multiDexEnabled = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import com.github.braillesystems.learnbraille.R
import com.github.braillesystems.learnbraille.databinding.FragmentGreetingBinding
import com.github.braillesystems.learnbraille.utils.updateTitle
Expand All @@ -26,9 +25,5 @@ class GreetingFragment : Fragment() {

updateTitle(getString(R.string.greeting_title))

startButton.setOnClickListener(
Navigation.createNavigateOnClickListener(R.id.action_greetingFragment_to_menuFragment)
)

}.root
}
27 changes: 10 additions & 17 deletions android/app/src/main/res/navigation/navigation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,8 @@
android:id="@+id/navigation"
app:startDestination="@id/menuFragment">

<fragment
android:id="@+id/greetingFragment"
android:name="com.github.braillesystems.learnbraille.ui.screens.greeting.GreetingFragment"
android:label="fragment_greeting"
tools:layout="@layout/fragment_greeting">
<action
android:id="@+id/action_greetingFragment_to_menuFragment"
app:destination="@id/menuFragment"
app:popEnterAnim="@anim/fragment_close_enter"
app:popUpTo="@+id/greetingFragment"
app:popUpToInclusive="true" />
</fragment>
<!-- Main navigation-->

<fragment
android:id="@+id/menuFragment"
android:name="com.github.braillesystems.learnbraille.ui.screens.menu.MenuFragment"
Expand All @@ -42,11 +32,6 @@
android:name="com.github.braillesystems.learnbraille.ui.screens.practice.CardFragment"
android:label="fragment_practice"
tools:layout="@layout/fragment_practice" />
<fragment
android:id="@+id/settingsFragment"
android:name="com.github.braillesystems.learnbraille.ui.screens.settings.SettingsFragment"
android:label="fragment_exit"
tools:layout="@layout/fragment_exit" />
<fragment
android:id="@+id/helpFragment"
android:name="com.github.braillesystems.learnbraille.ui.screens.help.HelpFragment"
Expand All @@ -57,6 +42,10 @@
app:argType="string"
app:nullable="true" />
</fragment>
<fragment
android:id="@+id/settingsFragment"
android:name="com.github.braillesystems.learnbraille.ui.screens.settings.SettingsFragment"
android:label="SettingsFragment" />

<action
android:id="@+id/action_global_menuFragment"
Expand All @@ -66,6 +55,8 @@
android:id="@+id/action_global_helpFragment"
app:destination="@id/helpFragment" />

<!-- Step fragments-->

<fragment
android:id="@+id/infoFragment"
android:name="com.github.braillesystems.learnbraille.ui.screens.theory.steps.InfoFragment"
Expand Down Expand Up @@ -123,6 +114,8 @@
app:argType="string" />
</fragment>

<!-- Global step actions-->

<action
android:id="@+id/action_global_showSymbolFragment"
app:destination="@id/showSymbolFragment"
Expand Down

0 comments on commit f201fd8

Please sign in to comment.