This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Clear cookies" button to ban info dialog (only works on 4chan fo…
…r now). Fix `get thread page` spam when the app is launched with no internet.
- Loading branch information
1 parent
4742980
commit 08097ac
Showing
14 changed files
with
269 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
Kuroba/app/src/main/java/com/github/k1rakishou/chan/core/usecase/ClearPostingCookies.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.github.k1rakishou.chan.core.usecase | ||
|
||
import com.github.k1rakishou.chan.core.manager.SiteManager | ||
import com.github.k1rakishou.core_logger.Logger | ||
import com.github.k1rakishou.model.data.descriptor.SiteDescriptor | ||
|
||
class ClearPostingCookies( | ||
private val siteManager: SiteManager | ||
) { | ||
|
||
fun perform(siteDescriptor: SiteDescriptor) { | ||
Logger.debug(TAG) { "perform(${siteDescriptor})" } | ||
|
||
siteManager.bySiteDescriptor(siteDescriptor) | ||
?.actions() | ||
?.clearPostingCookies() | ||
} | ||
|
||
companion object { | ||
private const val TAG = "ClearPostingCookies" | ||
} | ||
|
||
} |
Oops, something went wrong.