mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-20 06:09:09 +00:00
parent
7d004c1c79
commit
ec4d0558e7
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,6 @@ class ClipboardHistoryManager(
|
||||||
) : ClipboardManager.OnPrimaryClipChangedListener {
|
) : ClipboardManager.OnPrimaryClipChangedListener {
|
||||||
|
|
||||||
private lateinit var clipboardManager: ClipboardManager
|
private lateinit var clipboardManager: ClipboardManager
|
||||||
private val historyEntries: MutableList<ClipboardHistoryEntry> = ArrayList()
|
|
||||||
private var onHistoryChangeListener: OnHistoryChangeListener? = null
|
private var onHistoryChangeListener: OnHistoryChangeListener? = null
|
||||||
|
|
||||||
fun onCreate() {
|
fun onCreate() {
|
||||||
|
@ -149,4 +148,9 @@ class ClipboardHistoryManager(
|
||||||
fun onClipboardHistoryEntriesRemoved(pos: Int, count: Int)
|
fun onClipboardHistoryEntriesRemoved(pos: Int, count: Int)
|
||||||
fun onClipboardHistoryEntryMoved(from: Int, to: 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