Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.content.Context
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.WindowManager
import android.widget.EditText
Expand All @@ -16,8 +17,18 @@ class DetailsActivity : AppCompatActivity() {

private var data: ImageData? = null


companion object {
const val CLASS_NAME = "CLASS NAME"
}



override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Log.i(CLASS_NAME, javaClass.simpleName + "- onCreate")


setContentView(R.layout.activity_details)

val intent = intent
Expand All @@ -36,6 +47,7 @@ class DetailsActivity : AppCompatActivity() {

override fun onStart() {
super.onStart()
Log.i(CLASS_NAME,javaClass.simpleName +"- onStart")

image.setImageURI(data?.fileUri)
// image.setImageDrawable(getResources().getDrawable(android.R.drawable.btn_star));
Expand All @@ -44,6 +56,8 @@ class DetailsActivity : AppCompatActivity() {
text_uri.text = data?.fileUri.toString()
text_description.text = data?.description
edit_description.setText(data?.description)


}

override fun onBackPressed() {
Expand All @@ -54,4 +68,27 @@ class DetailsActivity : AppCompatActivity() {
setResult(Activity.RESULT_OK, resultIntent)
finish()
}


override fun onResume() {
super.onResume()
Log.i(CLASS_NAME,javaClass.simpleName + "- onResume")
}

override fun onPause() {
super.onPause()
Log.i(CLASS_NAME,javaClass.simpleName +"- onPause")
}

override fun onStop() {
super.onStop()
Log.i(CLASS_NAME, javaClass.simpleName + "- onStop")
}

override fun onDestroy() {
super.onDestroy()
Log.i(CLASS_NAME,javaClass.simpleName + "- onDestroy")
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import android.net.Uri
import android.os.Bundle
import android.os.Handler
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.view.MotionEvent
import android.view.View
import android.widget.ImageView
Expand All @@ -17,6 +18,7 @@ import android.widget.ImageView
* status bar and navigation/system bar) with user interaction.
*/
class FullscreenActivity : AppCompatActivity() {

private val mHideHandler = Handler()
private var mContentView: View? = null
private val mHidePart2Runnable = Runnable {
Expand Down Expand Up @@ -54,6 +56,7 @@ class FullscreenActivity : AppCompatActivity() {
}

override fun onCreate(savedInstanceState: Bundle?) {
Log.i(CLASS_NAME, javaClass.simpleName + "- onCreate")
super.onCreate(savedInstanceState)

val stringArray = arrayOfNulls<String>(5)
Expand Down Expand Up @@ -144,5 +147,36 @@ class FullscreenActivity : AppCompatActivity() {
* and a change of the status and navigation bar.
*/
private val UI_ANIMATION_DELAY = 300

const val CLASS_NAME = "CLASS NAME"
}

override fun onStart() {
super.onStart()
Log.i(CLASS_NAME, javaClass.simpleName + "- onStart")

}

override fun onResume() {
super.onResume()
Log.i(CLASS_NAME,javaClass.simpleName + "- onResume")
}

override fun onPause() {
super.onPause()
Log.i(CLASS_NAME,javaClass.simpleName +"- onPause")
}

override fun onStop() {
super.onStop()
Log.i(CLASS_NAME, javaClass.simpleName + "- onStop")
}

override fun onDestroy() {
super.onDestroy()
Log.i(CLASS_NAME,javaClass.simpleName + "- onDestroy")
}



}
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ import java.util.ArrayList

class MainActivity : AppCompatActivity() {

// had to change something


internal var imageList: ArrayList<ImageData> = ArrayList()
private var layoutManager: LinearLayoutManager? = null
private var listAdapter: ImageListAdapter? = null

override fun onCreate(savedInstanceState: Bundle?) {
Log.i(CLASS_NAME, javaClass.simpleName + "- onCreate")
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val context = this
Expand Down Expand Up @@ -85,5 +89,32 @@ class MainActivity : AppCompatActivity() {

internal const val REQUEST_IMAGE_GET = 1
internal const val EDIT_IMAGE_REQUEST = 2
const val CLASS_NAME = "CLASS NAME"
}

override fun onStart() {
super.onStart()
Log.i(CLASS_NAME, javaClass.simpleName + "- onStart")

}

override fun onResume() {
super.onResume()
Log.i(CLASS_NAME,javaClass.simpleName + "- onResume")
}

override fun onPause() {
super.onPause()
Log.i(CLASS_NAME,javaClass.simpleName +"- onPause")
}

override fun onStop() {
super.onStop()
Log.i(CLASS_NAME, javaClass.simpleName + "- onStop")
}

override fun onDestroy() {
super.onDestroy()
Log.i(CLASS_NAME,javaClass.simpleName + "- onDestroy")
}
}