Recently Written · git

assistkey

Hardware key remapper for the Viwoods AiPaper Reader: AI key, volume keys and power, with multi-tap, hold and chords

git clone https://github.com/equwal/assistkey

Log | Files | Refs


app/src/main/java/dev/equwal/assistkey/channel/CameraShimActivity.kt (609 bytes)

1 package dev.equwal.assistkey.channel
2 
3 import android.app.Activity
4 import android.os.Bundle
5 
6 /**
7  * Stands in for the camera app so that a double press of Power lands here.
8  *
9  * Only useful when the firmware double-press target is Camera and this app is
10  * the default camera app - which also means no real camera is reachable that
11  * way while the channel is on. That is the trade the checkbox represents.
12  */
13 class CameraShimActivity : Activity() {
14     override fun onCreate(savedInstanceState: Bundle?) {
15         super.onCreate(savedInstanceState)
16         ChannelEntry.handle(this, Channel.CAMERA)
17     }
18 }