mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-24 16:00:02 +00:00
material actionbar and fab
// FREEBIE
This commit is contained in:
@@ -21,7 +21,6 @@ import org.thoughtcrime.securesms.R;
|
||||
public class ReminderView extends LinearLayout {
|
||||
private ViewGroup container;
|
||||
private ImageButton cancel;
|
||||
private Button ok;
|
||||
private TextView title;
|
||||
private TextView text;
|
||||
private ImageView icon;
|
||||
@@ -46,7 +45,6 @@ public class ReminderView extends LinearLayout {
|
||||
LayoutInflater.from(getContext()).inflate(R.layout.reminder_header, this, true);
|
||||
container = (ViewGroup ) findViewById(R.id.container);
|
||||
cancel = (ImageButton) findViewById(R.id.cancel);
|
||||
ok = (Button ) findViewById(R.id.ok);
|
||||
title = (TextView ) findViewById(R.id.reminder_title);
|
||||
text = (TextView ) findViewById(R.id.reminder_text);
|
||||
icon = (ImageView ) findViewById(R.id.icon);
|
||||
@@ -58,7 +56,7 @@ public class ReminderView extends LinearLayout {
|
||||
text.setText(reminder.getTextResId());
|
||||
|
||||
if (reminder.isDismissable()) {
|
||||
ok.setOnClickListener(reminder.getOkListener());
|
||||
this.setOnClickListener(reminder.getOkListener());
|
||||
cancel.setOnClickListener(new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
@@ -68,7 +66,6 @@ public class ReminderView extends LinearLayout {
|
||||
});
|
||||
container.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
ok.setVisibility(View.GONE);
|
||||
cancel.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user