Fix for issues from crash logs

pull/14/head
Tim Su 13 years ago
parent ca002ae33c
commit 80449df0e5

@ -283,8 +283,10 @@ public class TagFilterExposer extends BroadcastReceiver {
protected boolean ok() {
int deleted = tagService.delete(tag);
TagData tagData = PluginServices.getTagDataService().getTag(tag, TagData.ID, TagData.DELETION_DATE);
if(tagData != null) {
tagData.setValue(TagData.DELETION_DATE, DateUtilities.now());
PluginServices.getTagDataService().save(tagData);
}
Toast.makeText(this, getString(R.string.TEA_tags_deleted, tag, deleted),
Toast.LENGTH_SHORT).show();
return true;

@ -22,6 +22,7 @@ import android.content.Context;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.drawable.ColorDrawable;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
@ -241,7 +242,12 @@ public abstract class QuickActionWidget extends PopupWindow {
showArrow();
prepareAnimationStyle();
try {
showAtLocation(anchor, Gravity.NO_GRAVITY, 0, mPopupY);
} catch (Exception e) {
Log.w("quick-action-show", e);
}
}
protected void clearQuickActions() {

Loading…
Cancel
Save