Change the Activity execute method to add a result boolean (handle/not handled).
When the camera key is pressed the Shell send and command to the active activity, if that's not handled than it startup org.laptop.CameraActivity.
This commit is contained in:
@@ -90,6 +90,9 @@ class ActivityHost:
|
||||
else:
|
||||
return profile.get_color()
|
||||
|
||||
def execute(self, command, args):
|
||||
self._activity.execute(command, args)
|
||||
|
||||
def share(self):
|
||||
self._activity.share()
|
||||
self._chat_widget.share()
|
||||
|
||||
Reference in New Issue
Block a user