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 @@ -19,6 +20,7 @@ class DetailsActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_details)
Log.i("Lifecycle", "OnCreate")

val intent = intent
data = intent.getSerializableExtra("object") as ImageData
Expand All @@ -44,7 +46,11 @@ class DetailsActivity : AppCompatActivity() {
text_uri.text = data?.fileUri.toString()
text_description.text = data?.description
edit_description.setText(data?.description)
Log.i("LifeCycle", "onStart()")
}
override fun onResume(){
super.onResume()
Log.i("LifeCycle", "onResume()") }

override fun onBackPressed() {
data?.name = edit_name.text.toString()
Expand All @@ -54,4 +60,16 @@ class DetailsActivity : AppCompatActivity() {
setResult(Activity.RESULT_OK, resultIntent)
finish()
}
override fun onPause(){
super.onPause()
Log.i("LifeCycle", "onPause()")

}
override fun onDestroy(){
super.onDestroy()
Log.i("LifeCycle", "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 Down Expand Up @@ -59,6 +60,7 @@ class FullscreenActivity : AppCompatActivity() {
val stringArray = arrayOfNulls<String>(5)

setContentView(R.layout.activity_fullscreen)
Log.i("Lifecycle", "OnCreate")

mVisible = true
// mControlsView = findViewById(R.id.fullscreen_content_controls);
Expand Down Expand Up @@ -144,5 +146,16 @@ class FullscreenActivity : AppCompatActivity() {
* and a change of the status and navigation bar.
*/
private val UI_ANIMATION_DELAY = 300


}
override fun onPause(){
super.onPause()
Log.i("Lifecycle", "onPause()")

}
override fun onDestroy(){
super.onDestroy()
Log.i("Lifecycle", "onDestroy")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MainActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val context = this

Log.i("Lifecycle", "onCreate")
imageList = ArrayList()

button_add.setOnClickListener {
Expand Down Expand Up @@ -86,4 +86,13 @@ class MainActivity : AppCompatActivity() {
internal const val REQUEST_IMAGE_GET = 1
internal const val EDIT_IMAGE_REQUEST = 2
}
override fun onPause(){
super.onPause()
Log.i("Lifecycle", "onPause()")

}
override fun onDestroy(){
super.onDestroy()
Log.i("Lifecycle", "onDestroy")
}
}