From e0e3bd7889d64a8acf1300efc6d711ce84d8d055 Mon Sep 17 00:00:00 2001 From: Kate Glazko Date: Wed, 19 Aug 2020 14:48:22 -0700 Subject: [PATCH] [fenix] No Issue: Fix Lint Issues Downloads Manager --- .../mozilla/fenix/library/downloads/DownloadAdapter.kt | 1 - .../mozilla/fenix/library/downloads/DownloadController.kt | 1 - .../fenix/library/downloads/DownloadFragmentStore.kt | 8 +++++++- .../org/mozilla/fenix/library/downloads/DownloadView.kt | 2 -- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadAdapter.kt b/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadAdapter.kt index 95ce6f247c..71fc6d0f48 100644 --- a/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadAdapter.kt +++ b/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadAdapter.kt @@ -1,4 +1,3 @@ - /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadController.kt b/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadController.kt index 9cc6762728..ccd30c1362 100644 --- a/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadController.kt +++ b/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadController.kt @@ -1,4 +1,3 @@ - /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ diff --git a/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadFragmentStore.kt b/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadFragmentStore.kt index 2078064a74..c79d450270 100644 --- a/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadFragmentStore.kt +++ b/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadFragmentStore.kt @@ -16,7 +16,13 @@ import mozilla.components.lib.state.Store * @property size The size in bytes of the download item * @property contentType The type of file the download is */ -data class DownloadItem(val id: Long, val fileName: String?, val filePath: String, val size: String, val contentType: String?) +data class DownloadItem( + val id: Long, + val fileName: String?, + val filePath: String, + val size: String, + val contentType: String? +) /** * The [Store] for holding the [DownloadFragmentState] and applying [DownloadFragmentAction]s. diff --git a/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadView.kt b/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadView.kt index 3261ee91e5..809d8ff53c 100644 --- a/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadView.kt +++ b/app/src/main/java/org/mozilla/fenix/library/downloads/DownloadView.kt @@ -1,5 +1,3 @@ - - /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */