Commit 7a7d92c8 authored by Cédric Bonhomme's avatar Cédric Bonhomme

Fixed a bug when IntentFilter do not have an '_ACTION_MAIN' attribute.

parent feca2d7b
...@@ -170,6 +170,7 @@ cdef class IntentFilter(object): ...@@ -170,6 +170,7 @@ cdef class IntentFilter(object):
""" """
return (self.actions and len(self.actions) >= 1 return (self.actions and len(self.actions) >= 1
and hasattr(IntentFilter, '_ACTION_MAIN')
and IntentFilter._ACTION_MAIN in self.actions) and IntentFilter._ACTION_MAIN in self.actions)
def print_end_point(self): def print_end_point(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment