Skip to content

Commit

Permalink
remove unuseful logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed Tarek committed May 20, 2017
1 parent ed5e906 commit ed709d9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -20,7 +20,7 @@ Add this to your module `build.gradle` file:
```gradle
dependencies {
...
compile "com.github.tarek360:instacapture:kotlin-2.0.0-beta"
compile "com.github.tarek360:instacapture:2.0.0-kotlin-beta1"
}
```

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Expand Up @@ -30,5 +30,5 @@ dependencies {
apt "com.jakewharton:butterknife-compiler:$rootProject.ext.butterknifeVersion"
compile "com.squareup.picasso:picasso:$rootProject.ext.picassoVersion"
compile('com.google.android.gms:play-services-maps:8.4.0')
compile project(':instacapture')
compile('com.github.tarek360:instacapture:kotlin-2.0.0-beta')
}
Expand Up @@ -10,19 +10,19 @@ import java.lang.ref.WeakReference
*/
class ActivityReferenceManager {

private var mActivity: WeakReference<Activity>? = null
private var activity: WeakReference<Activity>? = null

fun setActivity(activity: Activity) {
this.mActivity = WeakReference(activity)
this.activity = WeakReference(activity)
}

val validatedActivity: Activity?
get() {
if (mActivity == null) {
if (activity == null) {
return null
}

val activity = mActivity!!.get()
val activity = activity!!.get()
if (!isActivityValid(activity)) {
return null
}
Expand Down
Expand Up @@ -48,7 +48,7 @@ object ScreenshotTaker {
}

val viewRoots = FieldHelper.getRootViews(activity)
Logger.d("viewRoots count: " + viewRoots.size)

val main = activity.window.decorView

val bitmap: Bitmap
Expand Down

0 comments on commit ed709d9

Please sign in to comment.