Repository navigation
Fix/list filtering not working after rotating device 4441 - #4459
AwaisKhan128 wants to merge 7 commits into
Conversation
…filtering not working after rotating device bug
| @@ -0,0 +1,6 @@ | |||
| fix: List filtering not working after rotating device. | |||
There was a problem hiding this comment.
This is not a valid type for the calens file. There are 4 different valid types, in this case, the most suitable is Bugfix. You can check more info here: https://github.com/owncloud/android/blob/master/changelog/README.md 👍
| @@ -0,0 +1,6 @@ | |||
| fix: List filtering not working after rotating device. | |||
|
|
|||
| Added a android:configChange tag in FileDisplayActivity activity under application tag in manifest file. | |||
There was a problem hiding this comment.
Here we usually describe what we solved, not needed to explain how we solved it
| Added a android:configChange tag in FileDisplayActivity activity under application tag in manifest file. | ||
|
|
||
| https://github.com/owncloud/android/issues/4441 | ||
| https://github.com/owncloud/android/pull/4441 |
There was a problem hiding this comment.
The link to the PR in this case is incorrect, it should point to this PR (#4459)
| kotlinOptions { | ||
| jvmTarget = JavaVersion.VERSION_17.toString() | ||
| } | ||
|
|
||
| kotlinOptions { | ||
| jvmTarget = JavaVersion.VERSION_1_8.toString() | ||
| compileOptions { | ||
| sourceCompatibility JavaVersion.VERSION_17 | ||
| targetCompatibility JavaVersion.VERSION_17 |
There was a problem hiding this comment.
Why is it needed the upgrade of the Java version? There's no reason to change it for this fix, this can have major consequences in the rest of the app and its compatibility
| import android.net.Uri | ||
| import android.os.Build | ||
| import android.os.Bundle | ||
| import android.util.Log |
There was a problem hiding this comment.
This import is not used, let's remove unnecessary imports, otherwise BitRise, our CI system, won't approve these changes 😃
| else -> { | ||
|
|
||
| } |
There was a problem hiding this comment.
This is not necessary, UIResult has only 3 possible values: Loading, Success and Error, so the when block is already exhaustive 👍
| compileOptions { | ||
| sourceCompatibility JavaVersion.VERSION_17 | ||
| targetCompatibility JavaVersion.VERSION_17 | ||
| } | ||
| kotlinOptions { | ||
| jvmTarget = "17" | ||
| } | ||
|
|
||
| lint { | ||
| abortOnError false | ||
| ignoreWarnings true | ||
| } | ||
|
|
||
| kotlinOptions { | ||
| jvmTarget = JavaVersion.VERSION_1_8.toString() | ||
| } |
There was a problem hiding this comment.
Same as before, this is a strong change and shouldn't be carried out here
|
|
||
| kotlinOptions { | ||
| jvmTarget = JavaVersion.VERSION_1_8.toString() | ||
| compileOptions { | ||
| sourceCompatibility JavaVersion.VERSION_17 | ||
| targetCompatibility JavaVersion.VERSION_17 | ||
| } | ||
|
|
||
| compileOptions { | ||
| sourceCompatibility JavaVersion.VERSION_1_8 | ||
| targetCompatibility JavaVersion.VERSION_1_8 | ||
| kotlinOptions { | ||
| jvmTarget = JavaVersion.VERSION_17.toString() | ||
| } |
| compileOptions { | ||
| sourceCompatibility JavaVersion.VERSION_17 | ||
| targetCompatibility JavaVersion.VERSION_17 | ||
| } | ||
| buildTypes { | ||
| release { | ||
| minifyEnabled false | ||
| proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
| } | ||
| } | ||
| kotlinOptions { | ||
| jvmTarget = "17" | ||
| } |
|
Hi @AwaisKhan128! Thanks a lot for your contribution! 🚀 I'm closing this PR since fixing it would imply changing most part of the code you committed. I left you a code review here, but the most important points are: we shouldn't do strong changes (such as the Java version), at least in a PR like this -addressed to a little bug-, we shouldn't leave unused code and imports, and shouldn't add unnecessary code either. In any case, I would take a look into the activity or fragments code to try fixing the search bar stuff, instead of adding the Also, we use "Conventional Commits" to name our commits, so that we can keep all of them aligned. You can check more info here: https://github.com/owncloud/android/blob/master/CONTRIBUTING.md#2-create-pull-request I encourage you to open a new PR and send a new contribution, just take into account all that I posted here! 💪 |
|
@JuancaG05 Thanks for taking a review. I will open a new PR and send new contribution while taking account all above. Anyways, Thanks for your review. |
|
Hi @AwaisKhan128. Which Android Studio version are you using? I use |
|
@JuancaG05. Yes it works. But how. Once you clone the project. It shows an error then you upgrade its java version and sync/build it. It successfully builds up. Once it builds up now if you downgrade it again it won't show you an error. |
|
@JuancaG05 also can you help me installing and using calens? I am new to it. |
|
This is a matter of scope. This issue is intended to fix a problem in the filtering. Please, put the focus in the problem, if you think other parts of the app could be improved, this is welcome, but, in a different place. Fill up a new issue to address the fix there. Thanks. |
Hi @AwaisKhan128! No worries, there's no need to install nothing with Calens 😄. Calens is the plugin that the repo uses internally to generate the changelog based on the new entry files we create (as the one you created). Just read the main brief instructions (https://github.com/owncloud/android/blob/master/changelog/README.md) to create a new entry file and that's it. You did it correctly except for that couple of details I commented in the review 👍 |
Related Issues
App:
ReleaseNotesViewModel.ktcreating a newReleaseNote()with String resources (if required)QA