@ -42,6 +42,9 @@ public class AddOnService {
/** Astrid Locale package */
/** Astrid Locale package */
public static final String LOCALE_PACKAGE = "com.todoroo.astrid.locale" ;
public static final String LOCALE_PACKAGE = "com.todoroo.astrid.locale" ;
/** Astrid Producteev package */
public static final String PRODUCTEEV_PACKAGE = "com.todoroo.astrid.producteev" ;
/** Astrid Power Pack label */
/** Astrid Power Pack label */
public static final String POWER_PACK_LABEL = "Astrid Power Pack" ;
public static final String POWER_PACK_LABEL = "Astrid Power Pack" ;
@ -152,6 +155,9 @@ public class AddOnService {
* @return
* @return
* /
* /
public boolean isInstalled ( AddOn addOn ) {
public boolean isInstalled ( AddOn addOn ) {
// it isnt installed if it is null...
if ( addOn = = null )
return false ;
return isInstalled ( addOn . getPackageName ( ) , addOn . isInternal ( ) ) ;
return isInstalled ( addOn . getPackageName ( ) , addOn . isInternal ( ) ) ;
}
}
@ -165,6 +171,8 @@ public class AddOnService {
return true ;
return true ;
if ( LOCALE_PACKAGE . equals ( packageName ) )
if ( LOCALE_PACKAGE . equals ( packageName ) )
return true ;
return true ;
if ( PRODUCTEEV_PACKAGE . equals ( packageName ) )
return true ;
Context context = ContextManager . getContext ( ) ;
Context context = ContextManager . getContext ( ) ;
PackageInfo packageInfo ;
PackageInfo packageInfo ;
@ -231,7 +239,7 @@ public class AddOnService {
list [ 3 ] = new AddOn ( true , true , "Producteev" , null ,
list [ 3 ] = new AddOn ( true , true , "Producteev" , null ,
"Synchronize with Producteev service. Also changes Astrid's importance levels to stars." ,
"Synchronize with Producteev service. Also changes Astrid's importance levels to stars." ,
Constants. PACKAGE, "http://www.producteev.com" ,
PRODUCTEEV_ PACKAGE, "http://www.producteev.com" ,
( ( BitmapDrawable ) r . getDrawable ( R . drawable . icon_producteev ) ) . getBitmap ( ) ) ;
( ( BitmapDrawable ) r . getDrawable ( R . drawable . icon_producteev ) ) . getBitmap ( ) ) ;
return list ;
return list ;