Change polls
This commit is contained in:
parent
59bf752b06
commit
fa2c2654da
|
@ -21,6 +21,7 @@ import android.content.Context;
|
|||
import android.content.Intent;
|
||||
import android.content.SharedPreferences;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Build;
|
||||
|
@ -551,7 +552,8 @@ public class NotificationsListAdapter extends RecyclerView.Adapter implements On
|
|||
poll_item_value.setProgress((int)value);
|
||||
holder.rated.addView(item);
|
||||
if( pollOption.getVotes_count() == greaterValue ){
|
||||
poll_item_value.setScaleY(2f);
|
||||
poll_item_percent.setTypeface(null, Typeface.BOLD);
|
||||
poll_item_text.setTypeface(null, Typeface.BOLD);
|
||||
}
|
||||
if (ownvotes.contains(j)) {
|
||||
Drawable img = ContextCompat.getDrawable(context, R.drawable.ic_check_poll);
|
||||
|
|
|
@ -24,6 +24,7 @@ import android.content.SharedPreferences;
|
|||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Typeface;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.os.AsyncTask;
|
||||
|
@ -762,7 +763,8 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
poll_item_value.setProgress((int)value);
|
||||
holder.rated.addView(item);
|
||||
if( pollOption.getVotes_count() == greaterValue ){
|
||||
poll_item_value.setScaleY(2f);
|
||||
poll_item_percent.setTypeface(null, Typeface.BOLD);
|
||||
poll_item_text.setTypeface(null, Typeface.BOLD);
|
||||
}
|
||||
if (ownvotes.contains(j)) {
|
||||
Drawable img = ContextCompat.getDrawable(context, R.drawable.ic_check_poll);
|
||||
|
|
|
@ -323,9 +323,9 @@ public class Helper {
|
|||
public static final int BACKUP_NOTIFICATION_INTENT = 12;
|
||||
public static final int REDRAW_MENU = 13;
|
||||
//Settings
|
||||
public static final int TOOTS_PER_PAGE = 20;
|
||||
public static final int ACCOUNTS_PER_PAGE = 20;
|
||||
public static final int NOTIFICATIONS_PER_PAGE = 15;
|
||||
public static final int TOOTS_PER_PAGE = 40;
|
||||
public static final int ACCOUNTS_PER_PAGE = 40;
|
||||
public static final int NOTIFICATIONS_PER_PAGE = 30;
|
||||
public static final String SET_ATTACHMENT_ACTION = "set_attachment_action";
|
||||
public static final String SET_TOOT_PER_PAGE = "set_toot_per_page";
|
||||
public static final String SET_THEME = "set_theme";
|
||||
|
|
Loading…
Reference in New Issue