@ -108,6 +108,7 @@ class ActivityBundle(Bundle):
self . _tags = None
self . _tags = None
self . _activity_version = ' 0 '
self . _activity_version = ' 0 '
self . _summary = None
self . _summary = None
self . _single_instance = False
info_file = self . get_file ( ' activity/activity.info ' )
info_file = self . get_file ( ' activity/activity.info ' )
if info_file is None :
if info_file is None :
@ -179,6 +180,10 @@ class ActivityBundle(Bundle):
if cp . has_option ( section , ' summary ' ) :
if cp . has_option ( section , ' summary ' ) :
self . _summary = cp . get ( section , ' summary ' )
self . _summary = cp . get ( section , ' summary ' )
if cp . has_option ( section , ' single_instance ' ) :
if cp . get ( section , ' single_instance ' ) == ' yes ' :
self . _single_instance = True
def _get_linfo_file ( self ) :
def _get_linfo_file ( self ) :
# Using method from gettext.py, first find languages from environ
# Using method from gettext.py, first find languages from environ
languages = [ ]
languages = [ ]
@ -279,6 +284,10 @@ class ActivityBundle(Bundle):
""" Get the summary that describe the activity """
""" Get the summary that describe the activity """
return self . _summary
return self . _summary
def get_single_instance ( self ) :
""" Get whether there should be a single instance for the activity """
return self . _single_instance
def get_show_launcher ( self ) :
def get_show_launcher ( self ) :
""" Get whether there should be a visible launcher for the activity """
""" Get whether there should be a visible launcher for the activity """
return self . _show_launcher
return self . _show_launcher