From a112316912eb0cc23fdde2908af070ee875bdc26 Mon Sep 17 00:00:00 2001 From: ialokim <ialokim@mailbox.org> Date: Thu, 11 Nov 2021 20:39:11 +0100 Subject: [PATCH] add links to original files from AOSP --- .../org/briarproject/briar/desktop/viewmodel/ComposeUtils.kt | 5 +++++ .../briarproject/briar/desktop/viewmodel/ViewModelFactory.kt | 5 +++++ .../briar/desktop/viewmodel/ViewModelProvider.kt | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ComposeUtils.kt b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ComposeUtils.kt index 4957735fe9..351a067418 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ComposeUtils.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ComposeUtils.kt @@ -1,3 +1,8 @@ +/* +Code inspired by and adapted to our needs from +https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:lifecycle/lifecycle-viewmodel-compose/src/main/java/androidx/lifecycle/viewmodel/compose/ViewModel.kt;drc=0c44ec9ae8a43abafd966cd130196e9334fad359 +licensed under the Apache License, Version 2.0 + */ package org.briarproject.briar.desktop.viewmodel import androidx.compose.runtime.Composable diff --git a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelFactory.kt b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelFactory.kt index c3f519db25..89a8572e44 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelFactory.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelFactory.kt @@ -1,3 +1,8 @@ +/* +Code inspired by and adapted to our needs from +https://cs.android.com/androidx/architecture-components-samples/+/main:GithubBrowserSample/app/src/main/java/com/android/example/github/viewmodel/GithubViewModelFactory.kt;drc=3283b6bbc6c9d62a616f058cdf0225185a5a69d1 +originally licensed under the Apache License, Version 2.0 + */ package org.briarproject.briar.desktop.viewmodel import javax.inject.Inject diff --git a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelProvider.kt b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelProvider.kt index 83f59d104d..dd352bfb2c 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelProvider.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelProvider.kt @@ -1,3 +1,8 @@ +/* +Code inspired by and adapted to our needs from +https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:lifecycle/lifecycle-viewmodel/src/main/java/androidx/lifecycle/ViewModelProvider.kt;drc=ca3a75330b198ea068bc25d965597f72e719d8f5 +originally licensed under the Apache License, Version 2.0 + */ package org.briarproject.briar.desktop.viewmodel import javax.inject.Inject -- GitLab