Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mickstar committed May 9, 2021
1 parent fd07e2f commit f80a2ec
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ class BarcodeScanningScreen : Fragment() {
return
}

// TODO: - No available camera found case

} catch (e: CameraAccessException) {
} catch (e: SecurityException) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ class LibraryListFragment : Fragment(), LibraryListInteractionListener,
val fabISBNScanner =
requireView().findViewById<FloatingActionButton>(R.id.fab_action_barcode_scanner)
fabISBNScanner.setOnClickListener {
Toast.makeText(requireContext(), "Not yet implemented", Toast.LENGTH_SHORT).show()
findNavController().navigate(R.id.action_libraryListFragment_to_barcodeScanningScreen)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ package com.mickstarify.zooforzotero.LibraryActivity.ViewModels
import androidx.lifecycle.ViewModel

class BarcodeScanningScreenViewModel : ViewModel() {
// TODO: Implement the ViewModel
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.mickstarify.zooforzotero

import android.app.Application
import com.facebook.flipper.android.AndroidFlipperClient
import com.facebook.flipper.android.utils.FlipperUtils
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin
import com.facebook.flipper.plugins.inspector.DescriptorMapping
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin
import com.facebook.soloader.SoLoader
//import com.facebook.flipper.android.AndroidFlipperClient
//import com.facebook.flipper.android.utils.FlipperUtils
//import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin
//import com.facebook.flipper.plugins.inspector.DescriptorMapping
//import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin
//import com.facebook.soloader.SoLoader
import com.mickstarify.zooforzotero.di.component.ApplicationComponent
import com.mickstarify.zooforzotero.di.component.DaggerApplicationComponent
import com.mickstarify.zooforzotero.di.module.ApplicationModule
Expand All @@ -18,14 +18,14 @@ class ZooForZoteroApplication : Application() {
override fun onCreate() {
super.onCreate()

SoLoader.init(this, false)

if (BuildConfig.DEBUG && FlipperUtils.shouldEnableFlipper(this)) {
val client = AndroidFlipperClient.getInstance(this)
client.addPlugin(InspectorFlipperPlugin(this, DescriptorMapping.withDefaults()))
client.addPlugin(DatabasesFlipperPlugin(this));
client.start()
}
// SoLoader.init(this, false)
//
// if (BuildConfig.DEBUG && FlipperUtils.shouldEnableFlipper(this)) {
// val client = AndroidFlipperClient.getInstance(this)
// client.addPlugin(InspectorFlipperPlugin(this, DescriptorMapping.withDefaults()))
// client.addPlugin(DatabasesFlipperPlugin(this));
// client.start()
// }


component = DaggerApplicationComponent.builder().applicationModule(
Expand Down

0 comments on commit f80a2ec

Please sign in to comment.