minidiag/ui: Prevent calling update action if memory test is finished

Skip calling diagnostics_memory_update_screen() action if memory test is
finished to reduce delays in memory diagnostics screens.

BUG=b:168776970, b:171852478
TEST=Build locally, boot recovery, select 'run diagnostics',
     enter memory test (quick) screen, wait until test is finished,
     and observe that the delay reduces while pressing keyboard

Signed-off-by: Hsuan Ting Chen <>
Change-Id: I4f8dbadc68989112bce418119ff7405ec150a7df
2 files changed