mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
downgrade TOTP to 1.1.0 due to strange bug
also keep new icons layout
This commit is contained in:
@@ -28,7 +28,7 @@ void totp_scene_authenticate_activate(PluginState* plugin_state) {
|
||||
}
|
||||
|
||||
void totp_scene_authenticate_render(Canvas* const canvas, PluginState* plugin_state) {
|
||||
const SceneState* scene_state = (SceneState*)plugin_state->current_scene_state;
|
||||
SceneState* scene_state = (SceneState*)plugin_state->current_scene_state;
|
||||
|
||||
int v_shift = 0;
|
||||
if(scene_state->code_length > 0) {
|
||||
@@ -73,9 +73,7 @@ void totp_scene_authenticate_render(Canvas* const canvas, PluginState* plugin_st
|
||||
}
|
||||
}
|
||||
|
||||
bool totp_scene_authenticate_handle_event(
|
||||
const PluginEvent* const event,
|
||||
PluginState* plugin_state) {
|
||||
bool totp_scene_authenticate_handle_event(PluginEvent* const event, PluginState* plugin_state) {
|
||||
if(event->type == EventTypeKey) {
|
||||
if(event->input.type == InputTypeLong && event->input.key == InputKeyBack) {
|
||||
return false;
|
||||
@@ -158,6 +156,6 @@ void totp_scene_authenticate_deactivate(PluginState* plugin_state) {
|
||||
plugin_state->current_scene_state = NULL;
|
||||
}
|
||||
|
||||
void totp_scene_authenticate_free(const PluginState* plugin_state) {
|
||||
void totp_scene_authenticate_free(PluginState* plugin_state) {
|
||||
UNUSED(plugin_state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user