Skip to content

Commit

Permalink
refactor : refactor classes and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithdwivedi committed Jul 15, 2018
1 parent d27ebd8 commit 0190aa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 112 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
android:value="barcode" />
</activity>
<activity
android:name=".activity.LandscapeDetectorActivity"
android:name=".activity.LandmarkDetectorActivity"
android:parentActivityName=".activity.HomeActivity">

</activity>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import io.github.the_dagger.mlkit.R
import io.github.the_dagger.mlkit.activity.BarCodeReaderActivity
import io.github.the_dagger.mlkit.activity.CardScannerActivity
import io.github.the_dagger.mlkit.activity.ImageLabelActivity
import io.github.the_dagger.mlkit.activity.LandscapeDetectorActivity
import io.github.the_dagger.mlkit.activity.LandmarkDetectorActivity
import kotlinx.android.synthetic.main.item_row_home.view.*

class HomeAdapter(private val apiList: List<PojoApi>) : RecyclerView.Adapter<HomeAdapter.HomeHolder>() {
Expand All @@ -32,7 +32,7 @@ class HomeAdapter(private val apiList: List<PojoApi>) : RecyclerView.Adapter<Hom
0 -> context.startActivity(Intent(context, ImageLabelActivity::class.java))
1 -> context.startActivity(Intent(context, CardScannerActivity::class.java))
2 -> context.startActivity(Intent(context, BarCodeReaderActivity::class.java))
3 -> context.startActivity(Intent(context, LandscapeDetectorActivity::class.java))
3 -> context.startActivity(Intent(context, LandmarkDetectorActivity::class.java))
4 -> Toast.makeText(context, "Work in Progress", Toast.LENGTH_SHORT).show()
}
}
Expand Down

0 comments on commit 0190aa7

Please sign in to comment.