Skip to content

Commit

Permalink
Update MainActivity.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
mazenrashed authored Apr 21, 2019
1 parent 6a027b5 commit 2c6ede5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/src/main/java/com/mazenrashed/example/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {

private val printing = Printooth.printer()

private var printing : Printing? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
if (Printooth.hasPairedPrinter())
printing = Printooth.printer()
initViews()
initListeners()
}
Expand Down Expand Up @@ -145,4 +147,4 @@ class MainActivity : AppCompatActivity() {
printSomePrintable()
initViews()
}
}
}

0 comments on commit 2c6ede5

Please sign in to comment.