Bug that caused app crash fixed.

This commit is contained in:
Stefan 2020-08-30 15:24:52 +02:00
parent ddfb1fc373
commit 5ea77c26eb
2 changed files with 23 additions and 2 deletions

View File

@ -1,6 +1,22 @@
<component name="ProjectCodeStyleConfiguration"> <component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173"> <code_scheme name="Project" version="173">
<JetCodeStyleSettings> <JetCodeStyleSettings>
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
<value>
<package name="java.util" alias="false" withSubpackages="false" />
<package name="kotlinx.android.synthetic" alias="false" withSubpackages="true" />
<package name="io.ktor" alias="false" withSubpackages="true" />
</value>
</option>
<option name="PACKAGES_IMPORT_LAYOUT">
<value>
<package name="" alias="false" withSubpackages="true" />
<package name="java" alias="false" withSubpackages="true" />
<package name="javax" alias="false" withSubpackages="true" />
<package name="kotlin" alias="false" withSubpackages="true" />
<package name="" alias="true" withSubpackages="true" />
</value>
</option>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" /> <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings> </JetCodeStyleSettings>
<codeStyleSettings language="XML"> <codeStyleSettings language="XML">

View File

@ -34,7 +34,10 @@
android:id="@+id/action_addFragment_to_listFragment" android:id="@+id/action_addFragment_to_listFragment"
app:destination="@id/listFragment" app:destination="@id/listFragment"
app:enterAnim="@anim/from_left" app:enterAnim="@anim/from_left"
app:exitAnim="@anim/to_right" /> app:exitAnim="@anim/to_right"
app:launchSingleTop="false"
app:popUpTo="@id/listFragment"
app:popUpToInclusive="true" />
</fragment> </fragment>
<fragment <fragment
android:id="@+id/updateFragment" android:id="@+id/updateFragment"
@ -45,7 +48,9 @@
android:id="@+id/action_updateFragment_to_listFragment" android:id="@+id/action_updateFragment_to_listFragment"
app:destination="@id/listFragment" app:destination="@id/listFragment"
app:enterAnim="@anim/from_right" app:enterAnim="@anim/from_right"
app:exitAnim="@anim/to_left" /> app:exitAnim="@anim/to_left"
app:popUpTo="@id/listFragment"
app:popUpToInclusive="true" />
<argument <argument
android:name="currentItem" android:name="currentItem"
app:argType="com.example.todoapp.data.models.ToDoData" /> app:argType="com.example.todoapp.data.models.ToDoData" />