-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from furkanturkn/development
[refactor] code cleaning + reformatting
- Loading branch information
Showing
14 changed files
with
83 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
app/src/androidTest/java/com/furkan/cameraxmlkitpackexample/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
16 changes: 13 additions & 3 deletions
16
app/src/main/java/com/furkan/cameraxmlkitpackexample/MainActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,34 @@ | ||
package com.furkan.cameraxmlkitpackexample | ||
|
||
import android.content.Intent | ||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import android.widget.Button | ||
import androidx.appcompat.app.AppCompatActivity | ||
|
||
class MainActivity : AppCompatActivity() { | ||
|
||
companion object { | ||
const val REQUEST_CODE_PERMISSIONS = 10 | ||
} | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_main) | ||
|
||
val btnQrReaderActivity: Button = findViewById(R.id.btnQrReaderActivity) | ||
val btnQrReaderFragment: Button = findViewById(R.id.btnQrReaderFragment) | ||
btnQrReaderActivity.setOnClickListener{ | ||
|
||
btnQrReaderActivity.setOnClickListener { | ||
val qrReaderActivityIntent = | ||
Intent(applicationContext, QrActivity::class.java) | ||
startActivity(qrReaderActivityIntent) | ||
} | ||
btnQrReaderFragment.setOnClickListener{ | ||
|
||
btnQrReaderFragment.setOnClickListener { | ||
val qrReaderFragment = QrDialogFragment() | ||
qrReaderFragment.show(supportFragmentManager, "QR_FRAGMENT") | ||
} | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
app/src/test/java/com/furkan/cameraxmlkitpackexample/ExampleUnitTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
...-mlkit-pack/src/androidTest/java/com/furkan/camerax_mlkit_pack/ExampleInstrumentedTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.