diff --git a/ui/BankingAndroidApp/build.gradle b/ui/BankingAndroidApp/build.gradle index 22de00b5..715bd054 100644 --- a/ui/BankingAndroidApp/build.gradle +++ b/ui/BankingAndroidApp/build.gradle @@ -159,7 +159,6 @@ dependencies { implementation "androidx.navigation:navigation-fragment:$androidXNavigationVersion" implementation "androidx.navigation:navigation-ui:$androidXNavigationVersion" - implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0' implementation "androidx.navigation:navigation-fragment-ktx:$androidXNavigationVersion" implementation "androidx.navigation:navigation-ui-ktx:$androidXNavigationVersion" } diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt index 0cc6b8a5..e69746c0 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt @@ -10,7 +10,6 @@ import android.widget.ImageButton import androidx.appcompat.app.AlertDialog import androidx.appcompat.widget.SearchView import androidx.fragment.app.Fragment -import androidx.lifecycle.ViewModelProviders import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import kotlinx.android.synthetic.main.fragment_home.* @@ -40,8 +39,6 @@ class HomeFragment : Fragment() { } - private lateinit var homeViewModel: HomeViewModel - private lateinit var mnitmBalance: MenuItem private lateinit var mnitmSearchTransactions: MenuItem @@ -77,7 +74,6 @@ class HomeFragment : Fragment() { } override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { - homeViewModel = ViewModelProviders.of(this).get(HomeViewModel::class.java) val rootView = inflater.inflate(R.layout.fragment_home, container, false) // val textView: TextView = root.findViewById(R.id.text_home) // homeViewModel.text.observe(this, Observer { diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeViewModel.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeViewModel.kt deleted file mode 100644 index 75bd4009..00000000 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeViewModel.kt +++ /dev/null @@ -1,13 +0,0 @@ -package net.dankito.banking.ui.android.home - -import androidx.lifecycle.LiveData -import androidx.lifecycle.MutableLiveData -import androidx.lifecycle.ViewModel - -class HomeViewModel : ViewModel() { - - private val _text = MutableLiveData().apply { - value = "This is home Fragment" - } - val text: LiveData = _text -} \ No newline at end of file