Last revised on 2017-03-11
fotofall would like all users to carefully read the information provided. All inquiries are to be directed to: [email protected]
import android.content.Intent | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import android.util.Log | |
private const val tag = "2ndShare" | |
/** | |
* 1) Clear all the apps | |
* 2) Go to Google Photos, share image to this app |
// https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev/core/ktx/src/main/java/androidx/core/view/View.kt | |
inline fun <T : View> T.doOnNextLayout(crossinline action: (view: T) -> Unit) { | |
addOnLayoutChangeListener(object : View.OnLayoutChangeListener { | |
override fun onLayoutChange( | |
view: View, | |
left: Int, | |
top: Int, | |
right: Int, | |
bottom: Int, | |
oldLeft: Int, |
inline fun <T> safe(block: () -> T?) : T? { | |
return try { | |
block.invoke() | |
} catch (t: Throwable) { | |
null // ¯\_(ツ)_/¯ | |
} | |
} |
package me.vishna.kdebounce | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import android.text.Editable | |
import android.text.TextWatcher | |
import android.widget.EditText | |
import android.widget.TextView | |
import kotlinx.coroutines.experimental.* | |
import kotlinx.coroutines.experimental.android.UI |
package me.vishna.kdebounce | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import android.text.Editable | |
import android.text.TextWatcher | |
import android.widget.EditText | |
import android.widget.TextView | |
import kotlinx.coroutines.experimental.* | |
import kotlinx.coroutines.experimental.android.UI |
Last revised on 2017-03-11
fotofall would like all users to carefully read the information provided. All inquiries are to be directed to: [email protected]
All you need is Chrome browser.
package android.support.design.widget; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
/** | |
* Created by vishna on 04/11/15. | |
*/ | |
public class AppBarLayoutWorkaroundBehavior extends AppBarLayout.Behavior { |
import android.annotation.TargetApi; | |
import android.app.AlertDialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.res.Resources; | |
import android.graphics.Canvas; | |
import android.media.AudioManager; | |
import android.media.MediaFormat; | |
import android.media.MediaPlayer; | |
import android.net.Uri; |
package whatever; | |
import android.support.v7.widget.RecyclerView; | |
import java.lang.reflect.Field; | |
import java.util.HashSet; | |
/** | |
* Created by vishna on 28/10/14. | |
*/ |