-
Notifications
You must be signed in to change notification settings - Fork 967
adds hints trying to improve read performance #5798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: graphite-base/5798
Are you sure you want to change the base?
adds hints trying to improve read performance #5798
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
835f50f
to
b8253b8
Compare
193b7ae
to
978ce08
Compare
if (syncFeature.qrCodeScannerHints().isEnabled()) { | ||
if (appBuildConfig.isInternalBuild()) { | ||
beepManager = BeepManager(getActivity()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
want to switch the order of these two if
statements?
appBuildConfig.isInternalBuild()
is cheaper than syncFeature.qrCodeScannerHints().isEnabled()
so would be good to check that first
also, can you get syncFeature.qrCodeScannerHints().isEnabled()
off of the main thread?
@@ -86,13 +98,22 @@ constructor( | |||
ViewModelProvider(findViewTreeViewModelStoreOwner()!!, viewModelFactory)[SquareDecoratedBarcodeViewModel::class.java] | |||
} | |||
|
|||
private var beepManager: BeepManager? = null | |||
|
|||
private val cameraSettings = CameraSettings().apply { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this also be kill-switch’d ? (separate from qrCodeScannerHints
)
It seems like an innocent no-brainer of a change, but you never know...
Task/Issue URL: https://app.asana.com/0/488551667048375/1209726713190993/f
Description
Adds some options trying to improve QR scan performance
Steps to test this PR
N/A just try scan QR codes
UI changes