setState
Sets the selection state of a specific application.
This function is part of the AppPickerState interface.
Parameters
appInfo
The AppInfo object representing the application whose state is to be set.
isSelected
true to select the application, false to deselect it.