mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-19 21:59:11 +00:00
parent
7d004c1c79
commit
ec4d0558e7
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,6 @@ class ClipboardHistoryManager(
|
|||
) : ClipboardManager.OnPrimaryClipChangedListener {
|
||||
|
||||
private lateinit var clipboardManager: ClipboardManager
|
||||
private val historyEntries: MutableList<ClipboardHistoryEntry> = ArrayList()
|
||||
private var onHistoryChangeListener: OnHistoryChangeListener? = null
|
||||
|
||||
fun onCreate() {
|
||||
|
@ -149,4 +148,9 @@ class ClipboardHistoryManager(
|
|||
fun onClipboardHistoryEntriesRemoved(pos: Int, count: Int)
|
||||
fun onClipboardHistoryEntryMoved(from: Int, to: Int)
|
||||
}
|
||||
|
||||
companion object {
|
||||
// store pinned clips in companion object so they survive a keyboard switch (which destroys the current instance)
|
||||
private val historyEntries: MutableList<ClipboardHistoryEntry> = ArrayList()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue