$ git commit --amend --author="Author Name <email@address.com>"or
$ git commit --amend --reset-author| package ch.jojoni.jamplan.model.repository; | |
| import android.support.annotation.NonNull; | |
| import android.util.Log; | |
| import com.google.android.gms.tasks.Continuation; | |
| import com.google.android.gms.tasks.OnFailureListener; | |
| import com.google.android.gms.tasks.Task; | |
| import com.google.firebase.firestore.CollectionReference; | |
| import com.google.firebase.firestore.DocumentReference; |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.graphics.Rect; | |
| import android.view.View; | |
| import android.view.inputmethod.InputMethodManager; | |
| public class KeyboardUtils { | |
| public static void hideKeyboard(Activity activity) { | |
| View view = activity.findViewById(android.R.id.content); |
| package pl.pszklarska.leakexample; | |
| import android.content.Context; | |
| import android.widget.Toast; | |
| public class StaticContextLeak { | |
| private static Context context; | |
| public void setContext(final Context context) { |
| //Static: No need to make an instance to call this method. | |
| // Receives two arguments: | |
| //Icon: the Icon to convert: | |
| //Paquete: Package of the app where the icon resides, needed to retrieve an icon from another application. | |
| public static Drawable ReturnActionIconDrawable(Icon icon, string paquete) | |
| { | |
| //New Context field. | |
| Context remotePackageContext = null; | |
| //Create a context using the package passed in <paquete> |