-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from stantmob/feature/INS-943-insert-data-into…
…-photos Feature/INS-943
- Loading branch information
Showing
17 changed files
with
567 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 22 additions & 17 deletions
39
...main/java/br/com/stant/libraries/cardshowviewtakenpicturesview/camera/CameraActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,42 @@ | ||
package br.com.stant.libraries.cardshowviewtakenpicturesview.camera; | ||
|
||
import android.os.Bundle; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import br.com.stant.libraries.cardshowviewtakenpicturesview.R; | ||
import br.com.stant.libraries.cardshowviewtakenpicturesview.domain.model.SaveOnlyMode; | ||
import br.com.stant.libraries.cardshowviewtakenpicturesview.utils.ActivityUtils; | ||
|
||
import static br.com.stant.libraries.cardshowviewtakenpicturesview.CardShowTakenPictureView.KEY_DRAG_AND_DROP_MODE; | ||
import static br.com.stant.libraries.cardshowviewtakenpicturesview.CardShowTakenPictureView.KEY_IMAGE_LIST_SIZE; | ||
import static br.com.stant.libraries.cardshowviewtakenpicturesview.CardShowTakenPictureView.KEY_IS_CAPTION_ENABLED; | ||
import static br.com.stant.libraries.cardshowviewtakenpicturesview.CardShowTakenPictureView.KEY_IS_MULTIPLE_GALLERY_SELECTION; | ||
import static br.com.stant.libraries.cardshowviewtakenpicturesview.CardShowTakenPictureView.KEY_LIMIT_IMAGES; | ||
import static br.com.stant.libraries.cardshowviewtakenpicturesview.CardShowTakenPictureView.KEY_SAVE_ONLY_MODE; | ||
|
||
import android.os.Bundle; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
|
||
import br.com.stant.libraries.cardshowviewtakenpicturesview.R; | ||
import br.com.stant.libraries.cardshowviewtakenpicturesview.domain.model.SaveOnlyMode; | ||
import br.com.stant.libraries.cardshowviewtakenpicturesview.utils.ActivityUtils; | ||
|
||
public class CameraActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.camera_activity); | ||
|
||
Integer limitImages = getIntent().getIntExtra(KEY_LIMIT_IMAGES, -1); | ||
Integer image_list_size = getIntent().getIntExtra(KEY_IMAGE_LIST_SIZE, 0); | ||
Integer limitImages = getIntent().getIntExtra(KEY_LIMIT_IMAGES, -1); | ||
Integer image_list_size = getIntent().getIntExtra(KEY_IMAGE_LIST_SIZE, 0); | ||
Boolean isMultipleGallerySelection = getIntent().getBooleanExtra(KEY_IS_MULTIPLE_GALLERY_SELECTION, false); | ||
SaveOnlyMode saveOnlyMode = getIntent().getParcelableExtra(KEY_SAVE_ONLY_MODE); | ||
Boolean dragAndDropMode = getIntent().getBooleanExtra(KEY_DRAG_AND_DROP_MODE, false); | ||
Boolean isCaptionEnabled = getIntent().getBooleanExtra(KEY_IS_CAPTION_ENABLED, false); | ||
|
||
CameraFragment mCameraFragment = CameraFragment.newInstance(limitImages, image_list_size, | ||
isMultipleGallerySelection, saveOnlyMode, dragAndDropMode, isCaptionEnabled); | ||
SaveOnlyMode saveOnlyMode = getIntent().getParcelableExtra(KEY_SAVE_ONLY_MODE); | ||
Boolean dragAndDropMode = getIntent().getBooleanExtra(KEY_DRAG_AND_DROP_MODE, false); | ||
Boolean isCaptionEnabled = getIntent().getBooleanExtra(KEY_IS_CAPTION_ENABLED, false); | ||
|
||
CameraFragment mCameraFragment = CameraFragment.newInstance( | ||
limitImages, | ||
image_list_size, | ||
isMultipleGallerySelection, | ||
saveOnlyMode, | ||
dragAndDropMode, | ||
isCaptionEnabled | ||
); | ||
ActivityUtils.addFragmentToActivity(getSupportFragmentManager(), mCameraFragment, R.id.camera_content_frame); | ||
} | ||
|
||
|
||
} |
275 changes: 209 additions & 66 deletions
275
...main/java/br/com/stant/libraries/cardshowviewtakenpicturesview/camera/CameraFragment.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.