Crash when pressing "TEXT" on Network services setup numeric settings fields

Issue #398 resolved
prl created an issue

Crashes when you press TEXT when any numeric entry field is in focus in any of the setup screens under MENU>Setup>Network>Network services.

The problem is because context VirtualKeyboardActions has actions mapped for showVirtualKeyboard in two action maps. Only one of the action maps is disabled on ConfigNumber fields, and the other action map allows method KeyText() to be called on ConfigNumber items. This calls code that should not be used on a ConfigNumber, and he code crashes.

Replication steps Navigate to MENU>Setup>Network>Network services>DLNA server, then to MENU>Port.

Press TEXT. Crash.

Crash log attached.

Comments (2)

  1. Peter Urbanec

    Fix bug #398: Crash when pressing "TEXT" on Network services setup numeric settings fields

    [NetworkSetup] Remove VirtualKeyboardActions context and showVirtualKeyboard actions from ActionMaps in the setup screens. These actions weren't being disabled when the focus was on a ConfigNumber entry (in the DLNA and DYN-DNS setup screens), and KeyText() was being called on the ConfigNumber entries. ConfigNumber is nt compatible with KeyText().

    Removed from all ActionMaps, even for screens with no ConfigNumber entries to prevent future problems if a ConfigNumber entry was added.

    → <<cset 4fc16ca3f805>>

  2. Log in to comment