Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/schaal/ocreader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schaal <daniel@schaal.email>2021-07-20 07:33:40 +0300
committerDaniel Schaal <daniel@schaal.email>2021-07-25 10:10:47 +0300
commit1548187aaad774c326d4a2d8c4c4814283113974 (patch)
tree51f95a51d626bda8caabec44947c441d7e354c26
parent35d708027cf9adc654c3fdf7542f55ddd44f1bb8 (diff)
Remove unused class
-rw-r--r--app/src/main/java/email/schaal/ocreader/service/SyncResultReceiver.kt41
1 files changed, 0 insertions, 41 deletions
diff --git a/app/src/main/java/email/schaal/ocreader/service/SyncResultReceiver.kt b/app/src/main/java/email/schaal/ocreader/service/SyncResultReceiver.kt
deleted file mode 100644
index 637dcd05..00000000
--- a/app/src/main/java/email/schaal/ocreader/service/SyncResultReceiver.kt
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright © 2020. Daniel Schaal <daniel@schaal.email>
- *
- * This file is part of ocreader.
- *
- * ocreader is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * ocreader is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Foobar. If not, see <http://www.gnu.org/licenses/>.
- */
-
-package email.schaal.ocreader.service
-
-import android.os.Bundle
-import android.os.Handler
-import android.os.Looper
-import android.os.ResultReceiver
-import android.view.View
-import com.google.android.material.snackbar.Snackbar
-import email.schaal.ocreader.util.LoginError
-
-class SyncResultReceiver(private val view: View): ResultReceiver(Handler(Looper.getMainLooper())) {
- companion object {
- const val INTENT_KEY = "email.schaal.ocreader.SyncResultReceiver"
- const val EXCEPTION_DATA_KEY = "email.schaal.ocreader.SyncResultReceiver.EXCEPTION_DATA"
- }
-
- override fun onReceiveResult(resultCode: Int, resultData: Bundle?) {
- (resultData?.getSerializable(EXCEPTION_DATA_KEY) as? Exception)?.let {
- Snackbar.make(view, LoginError.getError(view.context, it).message, Snackbar.LENGTH_LONG).show()
- }
- }
-} \ No newline at end of file