Search in sources :

Example 6 with Reward

use of com.odysee.app.model.lbryinc.Reward in project odysee-android by OdyseeTeam.

the class RewardListAdapter method addCustomReward.

private void addCustomReward() {
    Reward custom = new Reward();
    custom.setCustom(true);
    custom.setRewardTitle(context.getString(R.string.custom_reward_title));
    custom.setRewardDescription(context.getString(R.string.custom_reward_description));
    items.add(custom);
    notifyItemInserted(items.indexOf(custom));
}
Also used : Reward(com.odysee.app.model.lbryinc.Reward)

Aggregations

Reward (com.odysee.app.model.lbryinc.Reward)6 View (android.view.View)3 TextView (android.widget.TextView)3 RecyclerView (androidx.recyclerview.widget.RecyclerView)3 LbryioRequestException (com.odysee.app.exceptions.LbryioRequestException)3 LbryioResponseException (com.odysee.app.exceptions.LbryioResponseException)3 ArrayList (java.util.ArrayList)3 JSONArray (org.json.JSONArray)3 JSONException (org.json.JSONException)3 Account (android.accounts.Account)2 AccountManager (android.accounts.AccountManager)2 Activity (android.app.Activity)2 Context (android.content.Context)2 Intent (android.content.Intent)2 Color (android.graphics.Color)2 AsyncTask (android.os.AsyncTask)2 Build (android.os.Build)2 Bundle (android.os.Bundle)2 Editable (android.text.Editable)2 TextWatcher (android.text.TextWatcher)2