|
|
|
@ -30,7 +30,7 @@ import java.io.File; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
import butterknife.Bind; |
|
|
|
|
import butterknife.BindView; |
|
|
|
|
import butterknife.ButterKnife; |
|
|
|
|
import butterknife.OnClick; |
|
|
|
|
|
|
|
|
@ -39,25 +39,25 @@ public class CameraFragmentMainActivity extends AppCompatActivity { |
|
|
|
|
public static final String FRAGMENT_TAG = "camera"; |
|
|
|
|
private static final int REQUEST_CAMERA_PERMISSIONS = 931; |
|
|
|
|
private static final int REQUEST_PREVIEW_CODE = 1001; |
|
|
|
|
@Bind(R.id.settings_view) |
|
|
|
|
@BindView(R.id.settings_view) |
|
|
|
|
CameraSettingsView settingsView; |
|
|
|
|
@Bind(R.id.flash_switch_view) |
|
|
|
|
@BindView(R.id.flash_switch_view) |
|
|
|
|
FlashSwitchView flashSwitchView; |
|
|
|
|
@Bind(R.id.front_back_camera_switcher) |
|
|
|
|
@BindView(R.id.front_back_camera_switcher) |
|
|
|
|
CameraSwitchView cameraSwitchView; |
|
|
|
|
@Bind(R.id.record_button) |
|
|
|
|
@BindView(R.id.record_button) |
|
|
|
|
RecordButton recordButton; |
|
|
|
|
@Bind(R.id.photo_video_camera_switcher) |
|
|
|
|
@BindView(R.id.photo_video_camera_switcher) |
|
|
|
|
MediaActionSwitchView mediaActionSwitchView; |
|
|
|
|
|
|
|
|
|
@Bind(R.id.record_duration_text) |
|
|
|
|
@BindView(R.id.record_duration_text) |
|
|
|
|
TextView recordDurationText; |
|
|
|
|
@Bind(R.id.record_size_mb_text) |
|
|
|
|
@BindView(R.id.record_size_mb_text) |
|
|
|
|
TextView recordSizeText; |
|
|
|
|
|
|
|
|
|
@Bind(R.id.cameraLayout) |
|
|
|
|
@BindView(R.id.cameraLayout) |
|
|
|
|
View cameraLayout; |
|
|
|
|
@Bind(R.id.addCameraButton) |
|
|
|
|
@BindView(R.id.addCameraButton) |
|
|
|
|
View addCameraButton; |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|