Skip to content
Commit ae2b732d authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Don't attempt to create context menu for 'add printer' entry

As the 'printer' variable becomes null and the activity crashes.

This could also be solved to register context menu's for each printer
entry (and not for the 'add printer' entry). Then we would need to
create a custom view for the printer entry that returns a
ContextMenuInfo containing the printer ID. While this solution is
cleaner, it is much more complex.

Test: Tried to open context menu in 'add printer' entry
Change-Id: I23dcba2dd876cff27b5cad9736f5ec4524985bac
Fixes: 73126748
parent e047522e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment