Commit c35b70b5 authored by Luboš Horáček's avatar Luboš Horáček

Zoomování novinových článků - listener pro přechod do ulice

parent 7b883f62
......@@ -28,7 +28,6 @@
android:id="@+id/imageView_column"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="@drawable/newuser_dialog_background"
android:src="@color/transparent" />
......
......@@ -49,7 +49,18 @@ public class NewspaperDialog extends TablexiaDialog {
int idBubble = getArguments().getInt(BUBBLE_KEY);
int idImage = getArguments().getInt(IMAGE_KEY);
view.findViewById(idBubble).setVisibility(View.VISIBLE);
View bubble = view.findViewById(idBubble);
bubble.setVisibility(View.VISIBLE);
boolean detective = getArguments().getBoolean(DETECTIVE_KEY);
if (detective) {
bubble.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
LocalBroadcastManager.getInstance(getActivity()).sendBroadcast(new Intent("cz.nic.tablexia.action.SLIDE_NEWSPAPER"));
}
});
}
ImageView iv = (ImageView) view.findViewById(R.id.imageView_column);
iv.setImageResource(idImage);
......@@ -61,10 +72,6 @@ public class NewspaperDialog extends TablexiaDialog {
@Override
public void onClick(View v) {
dismiss();
boolean detective = getArguments().getBoolean(DETECTIVE_KEY);
if (detective) {
LocalBroadcastManager.getInstance(getActivity()).sendBroadcast(new Intent("cz.nic.tablexia.action.SLIDE_NEWSPAPER"));
}
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment