|
@@ -29,6 +29,7 @@ import android.os.Build
|
|
|
import android.os.Bundle
|
|
|
import android.provider.ContactsContract
|
|
|
import android.text.TextUtils
|
|
|
+import android.util.Log
|
|
|
import androidx.annotation.RequiresApi
|
|
|
import autodagger.AutoInjector
|
|
|
import com.bluelinelabs.conductor.Conductor
|
|
@@ -87,6 +88,8 @@ class MainActivity : BaseActivity(), ActionBarProvider {
|
|
|
private var router: Router? = null
|
|
|
|
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
|
+ Log.d(TAG, "onCreate: Activity: " + System.identityHashCode(this).toString())
|
|
|
+
|
|
|
super.onCreate(savedInstanceState)
|
|
|
// Set the default theme to replace the launch screen theme.
|
|
|
setTheme(R.style.AppTheme)
|
|
@@ -162,6 +165,8 @@ class MainActivity : BaseActivity(), ActionBarProvider {
|
|
|
}
|
|
|
|
|
|
override fun onStart() {
|
|
|
+ Log.d(TAG, "onStart: Activity: " + System.identityHashCode(this).toString())
|
|
|
+
|
|
|
super.onStart()
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
|
|
checkIfWeAreSecure()
|
|
@@ -170,6 +175,21 @@ class MainActivity : BaseActivity(), ActionBarProvider {
|
|
|
handleActionFromContact(intent)
|
|
|
}
|
|
|
|
|
|
+ override fun onResume() {
|
|
|
+ Log.d(TAG, "onResume: Activity: " + System.identityHashCode(this).toString())
|
|
|
+ super.onResume()
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun onPause() {
|
|
|
+ Log.d(TAG, "onPause: Activity: " + System.identityHashCode(this).toString())
|
|
|
+ super.onPause()
|
|
|
+ }
|
|
|
+
|
|
|
+ override fun onStop() {
|
|
|
+ Log.d(TAG, "onStop: Activity: " + System.identityHashCode(this).toString())
|
|
|
+ super.onStop()
|
|
|
+ }
|
|
|
+
|
|
|
fun resetConversationsList() {
|
|
|
if (userUtils.anyUserExists()) {
|
|
|
router!!.setRoot(
|
|
@@ -317,6 +337,7 @@ class MainActivity : BaseActivity(), ActionBarProvider {
|
|
|
}
|
|
|
|
|
|
override fun onNewIntent(intent: Intent) {
|
|
|
+ Log.d(TAG, "onNewIntent Activity: " + System.identityHashCode(this).toString())
|
|
|
super.onNewIntent(intent)
|
|
|
handleActionFromContact(intent)
|
|
|
if (intent.hasExtra(BundleKeys.KEY_FROM_NOTIFICATION_START_CALL)) {
|