-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Pictures can be uploaded directly clicking them from the device's camera #2075
Conversation
thanks for your contribution. As usual, it will pass a QA process and code review before merging. If we detect bugs, improvements or issues related with the code, we will report here. |
first step is designing a test plan and execute it (i will take care). Please keep tuned here. In any case, i encourage you not to wait and start developing other stuff if you really wish to do it. Branches finally merges (or rebase) to have all stuff together and perform then appropiate checks. |
@jesmrec There should be a feature that allows the user to reset their Passcode in case they forget it right? |
@SD1998 there shouldn't. Passcode is the way you can protect the data in your app if you lose your device (for example), in case any other protection in the device is set (not probably). The only way to remove the passcode is inputing the passcode. If not, app has to be removed and reinstalled. |
@SD1998 this is available only for pics (not videos), isn't it? |
@jesmrec Should I implement a horizontally opening FAB for landscape orientation? |
AndroidManifest.xml
Outdated
android:theme="@style/Theme.ownCloud.Fullscreen"> | ||
</activity> | ||
android:theme="@style/Theme.ownCloud.Fullscreen" /> | ||
<activity android:name=".ui.activity.CapturedFileChecker" /> |
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.
Please include the suffix "Activity" for all the activities you add here, it will be helpful to distinguish them from services and other components. In this case, CapturedFileCheckerActivity would be great.
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.
I have removed the activity tags as there is no such activity present in the project(I created the activity before but then changed my approach and deleted them as they were of no use but the activity tag for them was still present in the Manifest file)
AndroidManifest.xml
Outdated
</activity> | ||
android:theme="@style/Theme.ownCloud.Fullscreen" /> | ||
<activity android:name=".ui.activity.CapturedFileChecker" /> | ||
<activity android:name=".ui.activity.Camera" /> |
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.
Same here, CameraActivity
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.
comment the same applies for the Camera Activity.
build.gradle
Outdated
|
||
// fix conflict in dependencies; see http://g.co/androidstudio/app-test-app-conflict for details | ||
androidTestCompile "com.android.support:support-annotations:${supportLibraryVersion}" | ||
androidTestCompile "com.android.support:support-annotations:" + |
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.
Why have you moved all these dependencies and kept the comments above? The different dependencies were ordered with different comments to know why they have been included. Can you reorder them as before?
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.
I have fixed this
Hi @SD1998 , I've tested your feature and the upload from camera is working, congrats!! 👏 Apart from that, I've just started with the code review and requested you some changes to be applied. I will continue with the review in the coming days, meanwhile you can start to apply those changes, go for it! 😉
We will discuss about it also, maybe some UI changes are needed. |
@davigonz Yes I will start working on the changes. |
Well, since the new "Upload from camera" floating button doesn't fit in landscape mode, I've thought in a new design to fix the problem by using bottom sheets: So, we have two options here:
Besides, using bottom sheets would enable us to add more options in the future (even with a scroll if needed), without depending on the space occupied by new floating buttons. @SD1998 I would go for the second option, here you have some articles explaining how to implement bottom sheets: Ping me if you have any question and I will help you CC / @michaelstingl |
@davigonz Yes even I think the second option is the better option. So I will remove the FAB and implement bottom sheets instead. |
@davigonz Can I use fragments instead of bottom sheets? |
@SD1998 You can use BottomSheetDialogFragment. In this link you will find an example. |
@davigonz Thanks |
Please, take in account about the label
In any case, this label is not very important so it is implicit that the user wants to upload. CC @davigonz |
@jesmrec Yes I just noticed the behaviour. Actually the bottom sheet in not opening completely only one option is being shown but you can drag the bottom sheet upwards this will show the second option. I am trying to change it so that both the options are shown when the bottom sheets is displayed. |
@davigonz Are there any more changes required? |
@SD1998 Awesome, the PR changes look better now 👏
Let me have a final look and if everything is OK, we can start with some QA. |
Hi again @SD1998 , you've been merging the owncloud master branch into your master branch when it was out-of-date with owncloud master. I'm sorry if I have not commented this to you before but we always use rebase so that all the commits appear not mixed in the history (I will update the CONTRIBUTING.md with this stuff). Let's see an example:
Here you can see that a master commit appears between two of your commits. To avoid that we always follow the next steps when one of our feature branches is out-of-date with master:
When we execute git rebase master, all the commits of the feature branch are placed after the last commit of the master branch. If you want to know more info about it, check this To have your commits history properly, you will need to perform a rebase with ownCloud master branch, by executing Once all the conflicts are fixed, execute Please, if you have any question, ask me, I hope you are learning a lot about git 😉 |
@davigonz When I am using rebase all the files that got deleted before Code Review are getting deleted again (i.e After this all the files were added again but when I rebase all the files that were added are getting removed). |
@SD1998 Are you using rebase in several steps? With rebase --continue? This should pass through all the commits, applying them, including the one to add the deleted files. |
@davigonz Yes I am using rebase with several steps. |
@SD1998 and what would happen with the rest of commits? I'm not sure if that will fix it, are you sure you are not missing some conflicts in any step? I will try it to do the rebase locally and see what happens. |
@davigonz Will this project be there for GSOC 2018? |
@SD1998 please discuss GSOC in https://central.owncloud.org/c/gsoc |
@SD1998 We have several proposals in the link @michaelstingl pasted just above, including the one I added yesterday about the integration of a document scanner in the Android app but the accepted organizations will be announced on February 12rd (program timeline). After that, if ownCloud is accepted as project in GSOC 2018, students can begin discussing project ideas. |
@SD1998 during the rebase, all your commits are applied one by one, some of them can trigger conflicts while others not. After this there isn't any commit that can delete the files again since the next commits are:
Are you following these steps during the rebase?
Repeat till there are no more conflicts. |
@davigonz Yes I am following those steps. So should I just rebase from the commit that you have mentioned or should I start from the first commit? |
@SD1998 You mean this?
This will apply all the previous commits to that specific commit but not the last three, which include the new feature itself. |
@davigonz Yes |
@SD1998 if you perform the rebase from that commit, you will need to apply after that the last three commits, you can do it by using But the last commit is a merge from master of ownCloud when it should be a rebase |
@davigonz Thanks I will try it now. |
8cfd971
to
c36e044
Compare
@davigonz I used rebase but still the branch is out of date. But I have the changes made in the recent commits in my local repository. |
@SD1998 Yes please, let's close this and open a new PR. |
Issue #2027 Fixed