This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imageview_insert_post.crop(View.MeasureSpec.makeMeasureSpec(1024,` View.MeasureSpec.AT_MOST), | |
View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),object : InstaCropperView.BitmapCallback { | |
override fun onBitmapReady(bitmap: Bitmap?) { | |
if (bitmap == null){ | |
return | |
} | |
try { | |
val file = File(selected_file) | |
//get output stream dari copy file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.PointF; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.util.SparseArray; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import androidx.annotation.Keep; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun getImagelist(): ArrayList<GaleryFragmentModel> { | |
var dataLocal = ArrayList<GaleryFragmentModel>() | |
var absolutePathOfFile: String? = null | |
val projection = arrayOf( | |
MediaStore.Files.FileColumns.DATA, | |
MediaStore.Files.FileColumns.DATE_ADDED, | |
MediaStore.Files.FileColumns.MEDIA_TYPE) | |
val selection:String = (MediaStore.Files.FileColumns.MEDIA_TYPE + "=" | |
+ MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package es.hyrax.zonapets.ui.user_private.home.Dashboard.my_zona | |
import android.app.Activity | |
import android.content.Context | |
import android.content.Intent | |
import android.content.pm.ActivityInfo | |
import android.os.Bundle | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun onPause() { | |
super.onPause() | |
// Fragment locked in portrait screen orientation | |
getActivity()?.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); | |
val holder = mview.feed_home.findViewHolderForAdapterPosition(0) | |
if (holder is ViewHolderVideos){ | |
//myZonaFragmentAdapter.pauseVodio(holder as ViewHolderVideos) | |
holder.playback.let { | |
kohii.pause(it,Scope.HOST) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.annotation.SuppressLint | |
import android.content.Context | |
import androidx.lifecycle.LiveData | |
import com.google.android.gms.location.LocationCallback | |
import com.google.android.gms.location.LocationRequest | |
import com.google.android.gms.location.LocationResult | |
import com.google.android.gms.location.LocationServices | |
import es.hyrax.zonapets.data.network.model.nearby_locations.Location | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package es.hyrax.zonapets.ui | |
import android.os.Bundle | |
import androidx.lifecycle.ViewModelProviders | |
import es.hyrax.zonapets.R | |
import es.hyrax.zonapets.ui.base.BaseActivityViewModel | |
import es.hyrax.zonapets.ui.login.LoginActivity | |
import es.hyrax.zonapets.ui.user_private.MainPrivateActivity | |
import com.google.android.play.core.install.InstallStateUpdatedListener | |
import com.google.android.play.core.appupdate.AppUpdateManager |
OlderNewer