Removed rmilk add on from list, minor usability fix from task edit page

pull/14/head
Tim Su 15 years ago
parent d635f98acd
commit a19b518e43

@ -273,7 +273,9 @@ public final class TaskEditActivity extends TabActivity {
((Button)findViewById(R.id.addons_button)).setOnClickListener(new View.OnClickListener() { ((Button)findViewById(R.id.addons_button)).setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
startActivity(new Intent(TaskEditActivity.this, AddOnActivity.class)); Intent addOnActivity = new Intent(TaskEditActivity.this, AddOnActivity.class);
addOnActivity.putExtra(AddOnActivity.TOKEN_START_WITH_AVAILABLE, true);
startActivity(addOnActivity);
} }
}); });
} }

@ -174,10 +174,6 @@ public class AddOnService {
* @return * @return
*/ */
private boolean isInstalled(String packageName, boolean internal) { private boolean isInstalled(String packageName, boolean internal) {
if(POWER_PACK_PACKAGE.equals(packageName))
return true;
if(LOCALE_PACKAGE.equals(packageName))
return true;
if(Constants.PACKAGE.equals(packageName)) if(Constants.PACKAGE.equals(packageName))
return true; return true;
@ -228,7 +224,7 @@ public class AddOnService {
Resources r = ContextManager.getContext().getResources(); Resources r = ContextManager.getContext().getResources();
// temporary temporary // temporary temporary
AddOn[] list = new AddOn[4]; AddOn[] list = new AddOn[3];
list[0] = new AddOn(false, true, "Astrid Power Pack", null, list[0] = new AddOn(false, true, "Astrid Power Pack", null,
"Support Astrid and get more productive with the Astrid Power Pack. Backup, widgets, no ads, and calendar integration. Power up today!", "Support Astrid and get more productive with the Astrid Power Pack. Backup, widgets, no ads, and calendar integration. Power up today!",
POWER_PACK_PACKAGE, "http://www.weloveastrid.com/store", POWER_PACK_PACKAGE, "http://www.weloveastrid.com/store",
@ -244,11 +240,6 @@ public class AddOnService {
Constants.PACKAGE, "http://www.producteev.com", Constants.PACKAGE, "http://www.producteev.com",
((BitmapDrawable)r.getDrawable(R.drawable.icon_producteev)).getBitmap()); ((BitmapDrawable)r.getDrawable(R.drawable.icon_producteev)).getBitmap());
list[3] = new AddOn(true, false, "Remember the Milk", null,
"Synchronize with Remember The Milk service.",
Constants.PACKAGE, "http://www.rmilk.com",
((BitmapDrawable)r.getDrawable(R.drawable.ic_menu_refresh)).getBitmap());
return list; return list;
} }

Loading…
Cancel
Save