fixed a crash when assigning hotkeys
This commit is contained in:
parent
bc64a9172b
commit
1a1222f069
1 changed files with 9 additions and 4 deletions
|
|
@ -114,10 +114,15 @@ public class SectionKeymap {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
((DropDownPreference) preference).setValue(newKey.toString());
|
((DropDownPreference) preference).setValue(newKey.toString());
|
||||||
previewCurrentKey((DropDownPreference) preference, newKey.toString());
|
previewCurrentKey((DropDownPreference) preference, newKey.toString());
|
||||||
populateOtherItems((DropDownPreference) preference);
|
populateOtherItems((DropDownPreference) preference);
|
||||||
return true;
|
return true;
|
||||||
|
} catch (Exception e) {
|
||||||
|
Logger.e("SectionKeymap.onItemClick", "Failed setting new hotkey. " + e.getMessage());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue