From 17351066d194b9f19c892072ef6d60572b15a7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 29 Mar 2021 09:31:01 +0200 Subject: [PATCH] Revert "Librus 2021 Hack Working 100% Legit." This reverts commit 9ccb6e0a24cd917a4e2624f563ab1006a04bdc89. --- .../ui/modules/login/LoginChooserFragment.kt | 6 --- .../ui/modules/login/LoginLibrusFragment.kt | 53 ------------------- .../main/res/layout/login_librus_fragment.xml | 20 ------- app/src/main/res/navigation/nav_login.xml | 9 ---- 4 files changed, 88 deletions(-) delete mode 100644 app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/login/LoginLibrusFragment.kt delete mode 100644 app/src/main/res/layout/login_librus_fragment.xml diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/login/LoginChooserFragment.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/login/LoginChooserFragment.kt index 4b88b4e6..8dee827e 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/login/LoginChooserFragment.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/login/LoginChooserFragment.kt @@ -202,12 +202,6 @@ class LoginChooserFragment : Fragment(), CoroutineScope { return } - if (loginType.loginType == LOGIN_TYPE_LIBRUS) { - FirebaseAnalytics.getInstance(activity).logEvent("librus_hacked", Bundle()) - nav.navigate(R.id.loginLibrusFragment, null, activity.navOptions) - return - } - launch { if (!checkAvailability(loginType.loginType)) return@launch diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/login/LoginLibrusFragment.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/login/LoginLibrusFragment.kt deleted file mode 100644 index 46b345e6..00000000 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/login/LoginLibrusFragment.kt +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Kacper Ziubryniewicz 2021-3-1 - */ - -package pl.szczodrzynski.edziennik.ui.modules.login - -import android.net.Uri -import android.os.Bundle -import android.view.LayoutInflater -import android.view.View -import android.view.ViewGroup -import androidx.fragment.app.Fragment -import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.Job -import pl.szczodrzynski.edziennik.App -import pl.szczodrzynski.edziennik.databinding.LoginLibrusFragmentBinding -import kotlin.coroutines.CoroutineContext - -class LoginLibrusFragment : Fragment(), CoroutineScope { - companion object { - private const val TAG = "LoginLibrusFragment" - } - - private lateinit var app: App - private lateinit var activity: LoginActivity - private lateinit var b: LoginLibrusFragmentBinding - - private val job: Job = Job() - override val coroutineContext: CoroutineContext - get() = job + Dispatchers.Main - - override fun onCreateView( - inflater: LayoutInflater, - container: ViewGroup?, - savedInstanceState: Bundle? - ): View? { - activity = (getActivity() as LoginActivity?) ?: return null - context ?: return null - app = activity.application as App - b = LoginLibrusFragmentBinding.inflate(inflater) - return b.root - } - - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { - b.librus2021HackWorking100PercentLegit.apply { - setVideoURI(Uri.parse("https://szkolny.eu/librus.mp4")) - setMediaController(null) - requestFocus() - start() - } - } -} diff --git a/app/src/main/res/layout/login_librus_fragment.xml b/app/src/main/res/layout/login_librus_fragment.xml deleted file mode 100644 index ee07781c..00000000 --- a/app/src/main/res/layout/login_librus_fragment.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - diff --git a/app/src/main/res/navigation/nav_login.xml b/app/src/main/res/navigation/nav_login.xml index 569fffa8..6fb5e503 100644 --- a/app/src/main/res/navigation/nav_login.xml +++ b/app/src/main/res/navigation/nav_login.xml @@ -22,9 +22,6 @@ - - - - -