Fix for crashes reported from android market

pull/14/head
Tim Su 15 years ago
parent 4155665bf4
commit 8890ca05f7

@ -486,13 +486,13 @@ public class TagViewActivity extends TaskListActivity implements OnTabChangeList
try {
String oldName = tagData.getValue(TagData.NAME);
actFmSyncService.fetchTag(tagData);
if(noRemoteId && tagData.getValue(TagData.REMOTE_ID) > 0) {
refreshData(manual, true);
}
DialogUtilities.dismissDialog(TagViewActivity.this, progressDialog);
runOnUiThread(new Runnable() {
@Override
public void run() {
if(noRemoteId && tagData.getValue(TagData.REMOTE_ID) > 0)
refreshData(manual, true);
refreshSettingsPage();
}
});

@ -145,6 +145,8 @@ public final class TagsControlSet implements TaskEditControlSet {
tagItem = inflater.inflate(R.layout.tag_edit_row, null);
tagsContainer.addView(tagItem);
}
if(tagName == null)
tagName = ""; //$NON-NLS-1$
final AutoCompleteTextView textView = (AutoCompleteTextView)tagItem.
findViewById(R.id.text1);

@ -10,7 +10,7 @@
android:orientation="horizontal">
<!-- picture thumbnail -->
<greendroid.widget.AsyncImageView android:id="@android:id/icon"
<greendroid.widget.AsyncImageView android:id="@+id/icon"
android:layout_width="40dip"
android:layout_height="44dip"
android:gravity="center"

@ -496,7 +496,7 @@ public final class TaskEditActivity extends TabActivity {
return;
String processedToast = addDueTimeToToast(toast.toString());
if(!onPause && !peopleControlSet.saveSharingSettings(processedToast))
if(!onPause && peopleControlSet != null && !peopleControlSet.saveSharingSettings(processedToast))
return;
finish();

@ -70,7 +70,7 @@ public class ContactListAdapter extends CursorAdapter {
public void bindView(View view, Context context, Cursor cursor) {
TextView text1 = (TextView) view.findViewById(android.R.id.text1);
TextView text2 = (TextView) view.findViewById(android.R.id.text2);
ImageView imageView = (ImageView) view.findViewById(android.R.id.icon);
ImageView imageView = (ImageView) view.findViewById(R.id.icon);
if(cursor.getColumnNames().length == PEOPLE_PROJECTION.length) {
int name = cursor.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME);

Loading…
Cancel
Save