Skip to content

Commit

Permalink
added view finder init
Browse files Browse the repository at this point in the history
  • Loading branch information
askerov committed Jun 25, 2013
1 parent 4b60c55 commit beae378
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion res/layout/capture.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<com.google.zxing.client.android.ViewfinderView
android:id="@+id/viewfinder_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
android:layout_height="fill_parent"
android:visibility="gone"/>

</FrameLayout>
6 changes: 6 additions & 0 deletions src/com/google/zxing/client/android/CaptureActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,16 @@ public void restartPreviewAfterDelay(long delayMS)

private void resetStatusView()
{

}

public void drawViewfinder()
{
ViewfinderView viewfinderView = (ViewfinderView) findViewById(R.id.viewfinder_view);
if (viewfinderView != null)
{
viewfinderView.setCameraManager(cameraManager);
}
}

public void onConfigurationChanged(final Configuration newConfig)
Expand Down

0 comments on commit beae378

Please sign in to comment.