Skip to content

Instantly share code, notes, and snippets.

Yonatan Levin parahall

Block or report user

Report or block parahall

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pyricau
pyricau / LeakSlackUploadService.java
Created May 9, 2015
Sending Leak Traces to a Slack Channel (and HipChat, see the comments)
View LeakSlackUploadService.java
import android.util.Log;
import com.squareup.leakcanary.AnalysisResult;
import com.squareup.leakcanary.DisplayLeakService;
import com.squareup.leakcanary.HeapDump;
import retrofit.RestAdapter;
import retrofit.RetrofitError;
import retrofit.http.Multipart;
import retrofit.http.POST;
import retrofit.http.Part;
import retrofit.mime.TypedFile;
@keyboardr
keyboardr / FragmentUtils.java
Last active Mar 8, 2019
Utility method for getting the appropriate parent of a Fragment for a given callback interface.
View FragmentUtils.java
import android.support.v4.app.Fragment;
public class FragmentUtils {
/**
* @param fragment
* The Fragment whose parent is to be found
* @param parentClass
* The interface that the parent should implement
* @return The parent of fragment that implements parentClass,
You can’t perform that action at this time.