Skip to content

Instantly share code, notes, and snippets.

@mrblrrd
mrblrrd / AppActivity.kt
Created October 29, 2019 13:26
Sample methods for logging received push notifications on Android.
package com.example.ui
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import com.example.util.toKeyValueString
import timber.log.Timber
class AppActivity : Activity() {
@mrblrrd
mrblrrd / BaseFragment.kt
Created August 26, 2019 10:20
Demonstration of the Fragment Plugin pattern.
package com.redmadrobot.ui.common
import android.os.Bundle
import android.support.annotation.CallSuper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.arellomobile.mvp.MvpAppCompatFragment
import com.redmadrobot.ui.common.plugin.FragmentEvent
import com.redmadrobot.ui.common.plugin.FragmentPlugin