Some changes
This commit is contained in:
parent
7bd1a874ff
commit
0e7f95f626
|
@ -78,7 +78,6 @@ public class APIResponse {
|
|||
private Context context = null;
|
||||
private List<PixelFedStory> pixelFedStories = null;
|
||||
private List<PixelFedStoryItem> pixelFedStoryItems = null;
|
||||
private PixelFedStory pixelFedStory = null;
|
||||
private List<Trends> trends = null;
|
||||
private List<IdentityProof> identityProofs = null;
|
||||
|
||||
|
|
|
@ -1476,24 +1476,20 @@ public class GNUAPI {
|
|||
case FAVOURITE:
|
||||
if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU) {
|
||||
action = "/favorites/create.json";
|
||||
params = new HashMap<>();
|
||||
params.put("id", targetedId);
|
||||
} else {
|
||||
action = "/friendica/activity/like.json";
|
||||
params = new HashMap<>();
|
||||
params.put("id", targetedId);
|
||||
}
|
||||
params = new HashMap<>();
|
||||
params.put("id", targetedId);
|
||||
break;
|
||||
case UNFAVOURITE:
|
||||
if (MainActivity.social == UpdateAccountInfoAsyncTask.SOCIAL.GNU) {
|
||||
action = "/favorites/destroy.json";
|
||||
params = new HashMap<>();
|
||||
params.put("id", targetedId);
|
||||
} else {
|
||||
action = "/friendica/activity/unlike.json";
|
||||
params = new HashMap<>();
|
||||
params.put("id", targetedId);
|
||||
}
|
||||
params = new HashMap<>();
|
||||
params.put("id", targetedId);
|
||||
break;
|
||||
case REBLOG:
|
||||
action = String.format("/statuses/retweet/%s.json", targetedId);
|
||||
|
|
|
@ -88,7 +88,9 @@ public class CustomEmojiAdapter extends BaseAdapter {
|
|||
@Override
|
||||
public void onResourceReady(@NonNull Drawable resource, @Nullable Transition<? super Drawable> transition) {
|
||||
emoji.setDrawable(resource);
|
||||
imageView.setImageDrawable(emoji.getDrawable());
|
||||
if( imageView != null && emoji.getDrawable() != null) {
|
||||
imageView.setImageDrawable(emoji.getDrawable());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -262,7 +262,7 @@ public class NotificationsListAdapter extends RecyclerView.Adapter<RecyclerView.
|
|||
else
|
||||
typeString = String.format("@%s %s", notification.getAccount().getUsername(), context.getString(R.string.notif_mention));
|
||||
imgH = ContextCompat.getDrawable(context, R.drawable.ic_chat_bubble_outline);
|
||||
if (notification.getStatus().getVisibility().equals("direct")) {
|
||||
if (notification.getStatus() != null && notification.getStatus().getVisibility().equals("direct")) {
|
||||
holder.main_container_trans.setVisibility(View.GONE);
|
||||
} else {
|
||||
holder.main_container_trans.setVisibility(View.VISIBLE);
|
||||
|
|
|
@ -65,6 +65,7 @@ public class ScheduledBoostsSyncJob extends Job {
|
|||
return jobId;
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnusedReturnValue")
|
||||
public static int scheduleUpdate(Context context, int tootStoredId, long timestampScheduling) {
|
||||
|
||||
long startMs = (timestampScheduling - new Date().getTime());
|
||||
|
|
Loading…
Reference in New Issue