2015-03-31 22:44:41 +00:00
|
|
|
package org.thoughtcrime.securesms.components;
|
|
|
|
|
2015-05-05 22:14:41 +00:00
|
|
|
import android.annotation.TargetApi;
|
|
|
|
import android.app.Activity;
|
2015-03-31 22:44:41 +00:00
|
|
|
import android.content.Context;
|
2015-07-15 20:42:59 +00:00
|
|
|
import android.content.res.TypedArray;
|
|
|
|
import android.graphics.Color;
|
2015-05-05 22:14:41 +00:00
|
|
|
import android.os.Build.VERSION;
|
|
|
|
import android.os.Build.VERSION_CODES;
|
2015-03-31 22:44:41 +00:00
|
|
|
import android.support.annotation.NonNull;
|
|
|
|
import android.support.annotation.Nullable;
|
|
|
|
import android.util.AttributeSet;
|
|
|
|
import android.util.Log;
|
|
|
|
import android.view.View;
|
2015-06-27 03:14:51 +00:00
|
|
|
import android.widget.FrameLayout;
|
2015-07-15 20:42:59 +00:00
|
|
|
import android.widget.ImageView;
|
2015-03-31 22:44:41 +00:00
|
|
|
|
2015-06-08 18:07:46 +00:00
|
|
|
import com.bumptech.glide.DrawableTypeRequest;
|
2015-03-31 22:44:41 +00:00
|
|
|
import com.bumptech.glide.GenericRequestBuilder;
|
|
|
|
import com.bumptech.glide.Glide;
|
2015-07-15 20:42:59 +00:00
|
|
|
import com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable;
|
|
|
|
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
|
2015-03-31 22:44:41 +00:00
|
|
|
import com.bumptech.glide.request.RequestListener;
|
|
|
|
import com.bumptech.glide.request.target.Target;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.R;
|
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
2015-08-24 22:24:31 +00:00
|
|
|
import org.thoughtcrime.securesms.database.PartDatabase;
|
2015-03-31 22:44:41 +00:00
|
|
|
import org.thoughtcrime.securesms.mms.DecryptableStreamUriLoader.DecryptableUri;
|
2015-08-10 16:33:57 +00:00
|
|
|
import org.thoughtcrime.securesms.mms.RoundedCorners;
|
2015-03-31 22:44:41 +00:00
|
|
|
import org.thoughtcrime.securesms.mms.Slide;
|
|
|
|
import org.thoughtcrime.securesms.mms.SlideDeck;
|
|
|
|
import org.thoughtcrime.securesms.util.FutureTaskListener;
|
|
|
|
import org.thoughtcrime.securesms.util.ListenableFutureTask;
|
2015-05-18 15:38:48 +00:00
|
|
|
import org.thoughtcrime.securesms.util.Util;
|
2015-07-30 22:02:20 +00:00
|
|
|
import org.thoughtcrime.securesms.util.ViewUtil;
|
2015-09-24 23:46:57 +00:00
|
|
|
import org.whispersystems.libaxolotl.util.guava.Optional;
|
2015-03-31 22:44:41 +00:00
|
|
|
|
|
|
|
import ws.com.google.android.mms.pdu.PduPart;
|
|
|
|
|
2015-06-27 03:14:51 +00:00
|
|
|
public class ThumbnailView extends FrameLayout {
|
|
|
|
private static final String TAG = ThumbnailView.class.getSimpleName();
|
|
|
|
|
2015-09-24 23:46:57 +00:00
|
|
|
private boolean hideControls;
|
|
|
|
private ImageView image;
|
|
|
|
private ImageView removeButton;
|
|
|
|
private int backgroundColorHint;
|
|
|
|
private int radius;
|
|
|
|
private OnClickListener parentClickListener;
|
2015-05-18 15:38:48 +00:00
|
|
|
|
2015-09-24 23:46:57 +00:00
|
|
|
private Optional<TransferControlView> transferControls = Optional.absent();
|
2015-03-31 22:44:41 +00:00
|
|
|
private ListenableFutureTask<SlideDeck> slideDeckFuture = null;
|
|
|
|
private SlideDeckListener slideDeckListener = null;
|
|
|
|
private ThumbnailClickListener thumbnailClickListener = null;
|
2015-08-24 22:24:31 +00:00
|
|
|
private ThumbnailClickListener downloadClickListener = null;
|
2015-05-18 15:38:48 +00:00
|
|
|
private String slideId = null;
|
|
|
|
private Slide slide = null;
|
2015-03-31 22:44:41 +00:00
|
|
|
|
|
|
|
public ThumbnailView(Context context) {
|
2015-06-27 03:14:51 +00:00
|
|
|
this(context, null);
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public ThumbnailView(Context context, AttributeSet attrs) {
|
2015-06-27 03:14:51 +00:00
|
|
|
this(context, attrs, 0);
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
|
2015-08-24 22:24:31 +00:00
|
|
|
public ThumbnailView(final Context context, AttributeSet attrs, int defStyle) {
|
2015-03-31 22:44:41 +00:00
|
|
|
super(context, attrs, defStyle);
|
2015-06-27 03:14:51 +00:00
|
|
|
inflate(context, R.layout.thumbnail_view, this);
|
2015-09-08 01:08:44 +00:00
|
|
|
radius = getResources().getDimensionPixelSize(R.dimen.message_bubble_corner_radius);
|
|
|
|
image = (ImageView) findViewById(R.id.thumbnail_image);
|
2015-09-24 23:46:57 +00:00
|
|
|
super.setOnClickListener(new ThumbnailClickDispatcher());
|
2015-09-09 18:55:06 +00:00
|
|
|
|
2015-07-15 20:42:59 +00:00
|
|
|
if (attrs != null) {
|
|
|
|
TypedArray typedArray = context.getTheme().obtainStyledAttributes(attrs, R.styleable.ThumbnailView, 0, 0);
|
|
|
|
backgroundColorHint = typedArray.getColor(0, Color.BLACK);
|
|
|
|
typedArray.recycle();
|
|
|
|
}
|
2015-06-27 03:14:51 +00:00
|
|
|
}
|
|
|
|
|
2015-09-24 23:46:57 +00:00
|
|
|
@Override public void setOnClickListener(OnClickListener l) {
|
|
|
|
parentClickListener = l;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override public void setFocusable(boolean focusable) {
|
|
|
|
super.setFocusable(focusable);
|
|
|
|
if (transferControls.isPresent()) transferControls.get().setFocusable(focusable);
|
|
|
|
}
|
|
|
|
|
2015-09-24 22:55:17 +00:00
|
|
|
@Override public void setClickable(boolean clickable) {
|
|
|
|
super.setClickable(clickable);
|
2015-09-24 23:46:57 +00:00
|
|
|
if (transferControls.isPresent()) transferControls.get().setClickable(clickable);
|
2015-09-24 22:55:17 +00:00
|
|
|
}
|
|
|
|
|
2015-07-30 22:02:20 +00:00
|
|
|
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
|
|
|
super.onLayout(changed, left, top, right, bottom);
|
|
|
|
if (removeButton != null) {
|
|
|
|
final int paddingHorizontal = removeButton.getWidth() / 2;
|
|
|
|
final int paddingVertical = removeButton.getHeight() / 2;
|
|
|
|
image.setPadding(paddingHorizontal, paddingVertical, paddingHorizontal, 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private ImageView getRemoveButton() {
|
|
|
|
if (removeButton == null) removeButton = ViewUtil.inflateStub(this, R.id.remove_button_stub);
|
|
|
|
return removeButton;
|
|
|
|
}
|
|
|
|
|
2015-09-08 01:08:44 +00:00
|
|
|
private TransferControlView getTransferControls() {
|
2015-09-24 23:46:57 +00:00
|
|
|
if (!transferControls.isPresent()) {
|
|
|
|
transferControls = Optional.of((TransferControlView)ViewUtil.inflateStub(this, R.id.transfer_controls_stub));
|
|
|
|
}
|
|
|
|
return transferControls.get();
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
|
2015-07-15 20:42:59 +00:00
|
|
|
public void setBackgroundColorHint(int color) {
|
|
|
|
this.backgroundColorHint = color;
|
|
|
|
}
|
|
|
|
|
2015-09-10 04:05:21 +00:00
|
|
|
public void setImageResource(@Nullable MasterSecret masterSecret,
|
|
|
|
long id,
|
|
|
|
long timestamp,
|
|
|
|
@NonNull ListenableFutureTask<SlideDeck> slideDeckFuture)
|
2015-03-31 22:44:41 +00:00
|
|
|
{
|
|
|
|
if (this.slideDeckFuture != null && this.slideDeckListener != null) {
|
|
|
|
this.slideDeckFuture.removeListener(this.slideDeckListener);
|
|
|
|
}
|
|
|
|
|
2015-05-18 15:38:48 +00:00
|
|
|
String slideId = id + "::" + timestamp;
|
|
|
|
|
|
|
|
if (!slideId.equals(this.slideId)) {
|
2015-09-24 23:46:57 +00:00
|
|
|
if (transferControls.isPresent()) getTransferControls().clear();
|
2015-06-27 03:14:51 +00:00
|
|
|
image.setImageDrawable(null);
|
2015-05-18 15:38:48 +00:00
|
|
|
this.slide = null;
|
|
|
|
this.slideId = slideId;
|
|
|
|
}
|
|
|
|
|
2015-03-31 22:44:41 +00:00
|
|
|
this.slideDeckListener = new SlideDeckListener(masterSecret);
|
|
|
|
this.slideDeckFuture = slideDeckFuture;
|
|
|
|
this.slideDeckFuture.addListener(this.slideDeckListener);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setImageResource(@NonNull Slide slide, @Nullable MasterSecret masterSecret) {
|
2015-06-27 03:14:51 +00:00
|
|
|
if (Util.equals(slide, this.slide)) {
|
2015-09-07 21:48:03 +00:00
|
|
|
Log.w(TAG, "Not re-loading slide " + slide.getPart().getPartId());
|
2015-06-27 03:14:51 +00:00
|
|
|
return;
|
|
|
|
}
|
2015-09-10 04:05:21 +00:00
|
|
|
|
2015-06-27 03:14:51 +00:00
|
|
|
if (!isContextValid()) {
|
2015-09-07 21:48:03 +00:00
|
|
|
Log.w(TAG, "Not loading slide, context is invalid");
|
2015-06-27 03:14:51 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2015-09-10 04:05:21 +00:00
|
|
|
Log.w(TAG, "loading part with id " + slide.getPart().getPartId()
|
|
|
|
+ ", progress " + slide.getTransferProgress());
|
2015-08-24 22:24:31 +00:00
|
|
|
|
|
|
|
this.slide = slide;
|
2015-09-10 04:05:21 +00:00
|
|
|
loadInto(slide, masterSecret, image);
|
2015-09-08 01:08:44 +00:00
|
|
|
|
|
|
|
if (!hideControls) {
|
|
|
|
getTransferControls().setSlide(slide);
|
|
|
|
getTransferControls().setDownloadClickListener(new DownloadClickDispatcher());
|
|
|
|
}
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void setThumbnailClickListener(ThumbnailClickListener listener) {
|
|
|
|
this.thumbnailClickListener = listener;
|
|
|
|
}
|
|
|
|
|
2015-07-30 22:02:20 +00:00
|
|
|
public void setRemoveClickListener(OnClickListener listener) {
|
|
|
|
getRemoveButton().setOnClickListener(listener);
|
2015-09-16 20:41:10 +00:00
|
|
|
final int pad = getResources().getDimensionPixelSize(R.dimen.media_bubble_remove_button_size);
|
|
|
|
image.setPadding(pad, pad, pad, 0);
|
2015-07-30 22:02:20 +00:00
|
|
|
}
|
|
|
|
|
2015-08-24 22:24:31 +00:00
|
|
|
public void setDownloadClickListener(ThumbnailClickListener listener) {
|
|
|
|
this.downloadClickListener = listener;
|
|
|
|
}
|
|
|
|
|
2015-05-31 05:10:40 +00:00
|
|
|
public void clear() {
|
2015-09-24 23:46:57 +00:00
|
|
|
if (isContextValid()) Glide.clear(image);
|
|
|
|
if (slideDeckFuture != null) slideDeckFuture.removeListener(slideDeckListener);
|
|
|
|
if (transferControls.isPresent()) getTransferControls().clear();
|
2015-09-05 00:33:22 +00:00
|
|
|
slide = null;
|
|
|
|
slideId = null;
|
|
|
|
slideDeckFuture = null;
|
|
|
|
slideDeckListener = null;
|
2015-05-31 05:10:40 +00:00
|
|
|
}
|
|
|
|
|
2015-08-24 22:24:31 +00:00
|
|
|
public void hideControls(boolean hideControls) {
|
|
|
|
this.hideControls = hideControls;
|
2015-09-24 23:46:57 +00:00
|
|
|
if (hideControls && transferControls.isPresent()) getTransferControls().setVisibility(View.GONE);
|
2015-06-27 03:14:51 +00:00
|
|
|
}
|
|
|
|
|
2015-09-05 00:33:22 +00:00
|
|
|
public void showProgressSpinner() {
|
2015-09-08 01:08:44 +00:00
|
|
|
getTransferControls().showProgressSpinner();
|
2015-09-05 00:33:22 +00:00
|
|
|
}
|
|
|
|
|
2015-05-05 22:14:41 +00:00
|
|
|
@TargetApi(VERSION_CODES.JELLY_BEAN_MR1)
|
|
|
|
private boolean isContextValid() {
|
|
|
|
return !(getContext() instanceof Activity) ||
|
|
|
|
VERSION.SDK_INT < VERSION_CODES.JELLY_BEAN_MR1 ||
|
|
|
|
!((Activity)getContext()).isDestroyed();
|
|
|
|
}
|
|
|
|
|
2015-09-10 04:05:21 +00:00
|
|
|
private void loadInto(@NonNull Slide slide,
|
|
|
|
@Nullable MasterSecret masterSecret,
|
|
|
|
@NonNull ImageView view)
|
2015-03-31 22:44:41 +00:00
|
|
|
{
|
2015-06-27 03:14:51 +00:00
|
|
|
if (slide.getThumbnailUri() != null) {
|
2015-09-10 04:05:21 +00:00
|
|
|
buildThumbnailGlideRequest(slide, masterSecret).into(view);
|
|
|
|
} else if (!slide.isInProgress()) {
|
|
|
|
buildPlaceholderGlideRequest(slide).into(view);
|
2015-03-31 22:44:41 +00:00
|
|
|
} else {
|
2015-09-10 04:05:21 +00:00
|
|
|
Glide.clear(view);
|
2015-06-27 03:14:51 +00:00
|
|
|
}
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private GenericRequestBuilder buildThumbnailGlideRequest(Slide slide, MasterSecret masterSecret) {
|
|
|
|
final GenericRequestBuilder builder;
|
2015-09-10 04:05:21 +00:00
|
|
|
|
2015-06-08 18:07:46 +00:00
|
|
|
if (slide.isDraft()) builder = buildDraftGlideRequest(slide, masterSecret);
|
|
|
|
else builder = buildPartGlideRequest(slide, masterSecret);
|
2015-09-10 04:05:21 +00:00
|
|
|
|
|
|
|
if (slide.isInProgress()) return builder;
|
|
|
|
else return builder.error(R.drawable.ic_missing_thumbnail_picture);
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
|
2015-06-08 18:07:46 +00:00
|
|
|
private GenericRequestBuilder buildDraftGlideRequest(Slide slide, MasterSecret masterSecret) {
|
|
|
|
final DrawableTypeRequest<?> request;
|
|
|
|
if (masterSecret == null) request = Glide.with(getContext()).load(slide.getThumbnailUri());
|
|
|
|
else request = Glide.with(getContext()).load(new DecryptableUri(masterSecret, slide.getThumbnailUri()));
|
2015-04-16 05:38:33 +00:00
|
|
|
|
2015-07-15 20:42:59 +00:00
|
|
|
return request.transform(new RoundedCorners(getContext(), false, radius, backgroundColorHint))
|
2015-06-08 18:07:46 +00:00
|
|
|
.listener(new PduThumbnailSetListener(slide.getPart()));
|
2015-04-16 05:38:33 +00:00
|
|
|
}
|
|
|
|
|
2015-06-08 18:07:46 +00:00
|
|
|
private GenericRequestBuilder buildPartGlideRequest(Slide slide, MasterSecret masterSecret) {
|
2015-03-31 22:44:41 +00:00
|
|
|
if (masterSecret == null) {
|
|
|
|
throw new IllegalStateException("null MasterSecret when loading non-draft thumbnail");
|
|
|
|
}
|
|
|
|
|
2015-07-15 20:42:59 +00:00
|
|
|
return Glide.with(getContext()).load(new DecryptableUri(masterSecret, slide.getThumbnailUri()))
|
|
|
|
.crossFade()
|
|
|
|
.transform(new RoundedCorners(getContext(), true, radius, backgroundColorHint));
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private GenericRequestBuilder buildPlaceholderGlideRequest(Slide slide) {
|
|
|
|
return Glide.with(getContext()).load(slide.getPlaceholderRes(getContext().getTheme()))
|
2015-07-16 00:31:02 +00:00
|
|
|
.asBitmap()
|
|
|
|
.fitCenter();
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
private class SlideDeckListener implements FutureTaskListener<SlideDeck> {
|
|
|
|
private final MasterSecret masterSecret;
|
|
|
|
|
|
|
|
public SlideDeckListener(MasterSecret masterSecret) {
|
|
|
|
this.masterSecret = masterSecret;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onSuccess(final SlideDeck slideDeck) {
|
|
|
|
if (slideDeck == null) return;
|
|
|
|
|
2015-08-10 16:33:57 +00:00
|
|
|
final Slide slide = slideDeck.getThumbnailSlide();
|
|
|
|
|
2015-03-31 22:44:41 +00:00
|
|
|
if (slide != null) {
|
2015-06-27 03:14:51 +00:00
|
|
|
Util.runOnMain(new Runnable() {
|
2015-03-31 22:44:41 +00:00
|
|
|
@Override
|
|
|
|
public void run() {
|
|
|
|
setImageResource(slide, masterSecret);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
} else {
|
2015-06-27 03:14:51 +00:00
|
|
|
Util.runOnMain(new Runnable() {
|
2015-03-31 22:44:41 +00:00
|
|
|
@Override
|
|
|
|
public void run() {
|
2015-05-18 15:38:48 +00:00
|
|
|
Log.w(TAG, "Resolved slide was null!");
|
|
|
|
setVisibility(View.GONE);
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onFailure(Throwable error) {
|
|
|
|
Log.w(TAG, error);
|
2015-06-27 03:14:51 +00:00
|
|
|
Util.runOnMain(new Runnable() {
|
2015-03-31 22:44:41 +00:00
|
|
|
@Override
|
|
|
|
public void run() {
|
2015-05-18 15:38:48 +00:00
|
|
|
Log.w(TAG, "onFailure!");
|
|
|
|
setVisibility(View.GONE);
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface ThumbnailClickListener {
|
|
|
|
void onClick(View v, Slide slide);
|
|
|
|
}
|
|
|
|
|
2015-09-09 18:55:06 +00:00
|
|
|
private class ThumbnailClickDispatcher implements View.OnClickListener {
|
|
|
|
@Override
|
|
|
|
public void onClick(View view) {
|
2015-09-11 02:48:10 +00:00
|
|
|
if (thumbnailClickListener != null &&
|
|
|
|
slide != null &&
|
2015-09-24 22:55:17 +00:00
|
|
|
slide.getPart().getDataUri() != null &&
|
|
|
|
slide.getTransferProgress() == PartDatabase.TRANSFER_PROGRESS_DONE)
|
2015-09-09 18:55:06 +00:00
|
|
|
{
|
|
|
|
thumbnailClickListener.onClick(view, slide);
|
2015-09-24 23:46:57 +00:00
|
|
|
} else if (parentClickListener != null) {
|
|
|
|
parentClickListener.onClick(view);
|
2015-09-09 18:55:06 +00:00
|
|
|
}
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
2015-09-09 18:55:06 +00:00
|
|
|
}
|
2015-03-31 22:44:41 +00:00
|
|
|
|
2015-09-09 18:55:06 +00:00
|
|
|
private class DownloadClickDispatcher implements View.OnClickListener {
|
2015-03-31 22:44:41 +00:00
|
|
|
@Override
|
|
|
|
public void onClick(View view) {
|
2015-09-09 18:55:06 +00:00
|
|
|
if (downloadClickListener != null && slide != null) {
|
|
|
|
downloadClickListener.onClick(view, slide);
|
2015-04-23 18:33:34 +00:00
|
|
|
}
|
2015-03-31 22:44:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-30 22:02:20 +00:00
|
|
|
private class PduThumbnailSetListener implements RequestListener<Object, GlideDrawable> {
|
2015-03-31 22:44:41 +00:00
|
|
|
private PduPart part;
|
|
|
|
|
|
|
|
public PduThumbnailSetListener(@NonNull PduPart part) {
|
|
|
|
this.part = part;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-07-15 20:42:59 +00:00
|
|
|
public boolean onException(Exception e, Object model, Target<GlideDrawable> target, boolean isFirstResource) {
|
2015-03-31 22:44:41 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-07-15 20:42:59 +00:00
|
|
|
public boolean onResourceReady(GlideDrawable resource, Object model, Target<GlideDrawable> target, boolean isFromMemoryCache, boolean isFirstResource) {
|
|
|
|
if (resource instanceof GlideBitmapDrawable) {
|
|
|
|
Log.w(TAG, "onResourceReady() for a Bitmap. Saving.");
|
|
|
|
part.setThumbnail(((GlideBitmapDrawable)resource).getBitmap());
|
|
|
|
}
|
2015-09-16 20:41:10 +00:00
|
|
|
LayoutParams layoutParams = (LayoutParams) getRemoveButton().getLayoutParams();
|
|
|
|
if (resource.getIntrinsicWidth() < getWidth()) {
|
|
|
|
layoutParams.topMargin = 0;
|
|
|
|
layoutParams.rightMargin = Math.max(0, (getWidth() - image.getPaddingRight() - resource.getIntrinsicWidth()) / 2);
|
2015-07-30 22:02:20 +00:00
|
|
|
} else {
|
2015-09-16 20:41:10 +00:00
|
|
|
layoutParams.topMargin = Math.max(0, (getHeight() - image.getPaddingTop() - resource.getIntrinsicHeight()) / 2);
|
|
|
|
layoutParams.rightMargin = 0;
|
2015-07-30 22:02:20 +00:00
|
|
|
}
|
2015-09-16 20:41:10 +00:00
|
|
|
getRemoveButton().setLayoutParams(layoutParams);
|
2015-03-31 22:44:41 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|