Skip to content

[FEATURE REQUEST] Show same remove dialog for every kind of file or folder#4404

Merged
Aitorbp merged 11 commits into
masterfrom
feature/show_same_remove_dialog_for_every_file_folder
Jun 24, 2024
Merged

[FEATURE REQUEST] Show same remove dialog for every kind of file or folder#4404
Aitorbp merged 11 commits into
masterfrom
feature/show_same_remove_dialog_for_every_file_folder

Conversation

@Aitorbp

@Aitorbp Aitorbp commented May 13, 2024

Copy link
Copy Markdown
Contributor

Related Issues

App: #4377

  • Add changelog files for the fixed issues in folder changelog/unreleased. More info here
  • Add feature to Release Notes in ReleaseNotesViewModel.kt creating a new ReleaseNote() with String resources (if required)

QA

@Aitorbp Aitorbp self-assigned this May 13, 2024
@Aitorbp Aitorbp force-pushed the feature/show_same_remove_dialog_for_every_file_folder branch from 6bef5ff to 98f3ddf Compare May 13, 2024 13:21
@Aitorbp Aitorbp linked an issue May 14, 2024 that may be closed by this pull request
8 tasks
@Aitorbp Aitorbp force-pushed the feature/show_same_remove_dialog_for_every_file_folder branch from 5f9c0e0 to 0b29948 Compare May 14, 2024 14:57
@Aitorbp Aitorbp requested a review from JuancaG05 May 14, 2024 16:17

@joragua joragua left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes here

Comment thread owncloudApp/src/main/res/values/strings.xml Outdated
Comment thread changelog/unreleased/4404 Outdated
@Aitorbp Aitorbp force-pushed the feature/show_same_remove_dialog_for_every_file_folder branch 4 times, most recently from 72c28ff to bf7df0e Compare June 4, 2024 07:25
@Aitorbp Aitorbp force-pushed the feature/show_same_remove_dialog_for_every_file_folder branch from d4c5d09 to f6c51c3 Compare June 14, 2024 13:54
@Aitorbp

Aitorbp commented Jun 17, 2024

Copy link
Copy Markdown
Contributor Author

Add new shortcut icon to remove dialog when shortcut pr will be merged.

@JuancaG05 JuancaG05 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Several things to check here @Aitorbp

Comment thread changelog/unreleased/4404 Outdated
Comment thread changelog/unreleased/4404 Outdated
Comment thread owncloudApp/src/main/res/values/strings.xml Outdated
Comment thread owncloudApp/src/main/res/values/strings.xml Outdated
@Aitorbp Aitorbp force-pushed the feature/show_same_remove_dialog_for_every_file_folder branch 2 times, most recently from cb11037 to a9b7d13 Compare June 18, 2024 08:21
@Aitorbp Aitorbp requested a review from JuancaG05 June 18, 2024 08:46
Comment thread changelog/unreleased/4404 Outdated
Comment thread changelog/unreleased/4404 Outdated
Comment thread owncloudApp/src/main/res/values/strings.xml Outdated
@Aitorbp Aitorbp force-pushed the feature/show_same_remove_dialog_for_every_file_folder branch from 8f01d7d to f2f8a83 Compare June 18, 2024 12:15
@Aitorbp Aitorbp requested a review from JuancaG05 June 18, 2024 12:20
@Aitorbp Aitorbp force-pushed the feature/show_same_remove_dialog_for_every_file_folder branch from 9c5e5bd to 9c525a2 Compare June 20, 2024 08:52

@JuancaG05 JuancaG05 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, again, remove that new release note which shouldn't be here...

@Aitorbp Aitorbp requested a review from JuancaG05 June 20, 2024 11:50

@JuancaG05 JuancaG05 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jesmrec

jesmrec commented Jun 21, 2024

Copy link
Copy Markdown
Contributor

QA checks:

  • Remove folder
  • Remove txt
  • Remove pic
  • Remove video
  • Remove audio
  • Remove pdf
  • Remove office (docx, pptx, xlsx)
  • Remove shortcut
  • Remove zip
  • Remove html
  • Remove docxf
  • Remove unknown
  • Remove multiselection

Open dialog from:

  • List of files
  • Details
  • Preview

@jesmrec

jesmrec commented Jun 21, 2024

Copy link
Copy Markdown
Contributor

(1) [FIXED]

  1. Select any item on the file list and click on Remove
  2. Change device orientation

Current:

app crashes. This is the stacktrace:

Process: com.owncloud.android.debug, PID: 29844
                 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.owncloud.android.debug/com.owncloud.android.ui.activity.FileDisplayActivity}: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.owncloud.android.presentation.files.removefile.RemoveFilesDialogFragment: could not find Fragment constructor
                 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3449)
                 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
                 	at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5456)
                 	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5362)
                 	at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:69)
                 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
                 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
                 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
                 	at android.os.Handler.dispatchMessage(Handler.java:106)
                 	at android.os.Looper.loop(Looper.java:223)
                 	at android.app.ActivityThread.main(ActivityThread.java:7656)
                 	at java.lang.reflect.Method.invoke(Native Method)
                 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
                 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
                 Caused by: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.owncloud.android.presentation.files.removefile.RemoveFilesDialogFragment: could not find Fragment constructor
                 	at androidx.fragment.app.Fragment.instantiate(Fragment.java:681)
                 	at androidx.fragment.app.FragmentContainer.instantiate(FragmentContainer.java:57)
                 	at androidx.fragment.app.FragmentManager$3.instantiate(FragmentManager.java:507)
                 	at androidx.fragment.app.FragmentState.instantiate(FragmentState.java:81)
                 	at androidx.fragment.app.FragmentStateManager.<init>(FragmentStateManager.java:85)
                 	at androidx.fragment.app.FragmentManager.restoreSaveStateInternal(FragmentManager.java:2507)
                 	at androidx.fragment.app.FragmentManager.attachController(FragmentManager.java:2667)
                 	at androidx.fragment.app.FragmentController.attachHost(FragmentController.java:117)
                 	at androidx.fragment.app.FragmentActivity.lambda$init$3$androidx-fragment-app-FragmentActivity(FragmentActivity.java:140)
                 	at androidx.fragment.app.FragmentActivity$$ExternalSyntheticLambda3.onContextAvailable(Unknown Source:2)
                 	at androidx.activity.contextaware.ContextAwareHelper.dispatchOnContextAvailable(ContextAwareHelper.java:99)
                 	at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:352)
                 	at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:217)
                 	at com.owncloud.android.ui.activity.DrawerActivity.onCreate(DrawerActivity.kt:588)
                 	at com.owncloud.android.ui.activity.FileActivity.onCreate(FileActivity.java:119)
                 	at com.owncloud.android.ui.activity.FileDisplayActivity.onCreate(FileDisplayActivity.kt:197)
                 	at android.app.Activity.performCreate(Activity.java:8000)
                 	at android.app.Activity.performCreate(Activity.java:7984)
                 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
                 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3422)
                 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601) 
                 	at android.app.ActivityThread.handleRelaunchActivityInner(ActivityThread.java:5456) 
                 	at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:5362) 
                 	at android.app.servertransaction.ActivityRelaunchItem.execute(ActivityRelaunchItem.java:69) 
                 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
                 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
                 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) 
                 	at android.os.Handler.dispatchMessage(Handler.java:106) 
                 	at android.os.Looper.loop(Looper.java:223) 
                 	at android.app.ActivityThread.main(ActivityThread.java:7656) 
                 	at java.lang.reflect.Method.invoke(Native Method) 
                 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 
                 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 
                 Caused by: java.lang.NoSuchMethodException: com.owncloud.android.presentation.files.removefile.RemoveFilesDialogFragment.<init> []
                 	at java.lang.Class.getConstructor0(Class.java:2332)
                 	at java.lang.Class.getConstructor(Class.java:1728)
                 	at androidx.fragment.app.Fragment.instantiate(Fragment.java:666)

Expected:

no crash

Pixel 2, Android 11
015c716f1

@Aitorbp

Aitorbp commented Jun 21, 2024

Copy link
Copy Markdown
Contributor Author

The last report is ready to test @jesmrec. Also I added in another commit one fix related to release note of shortcut. I added here because that pr is already merged.

@jesmrec

jesmrec commented Jun 21, 2024

Copy link
Copy Markdown
Contributor

Crash is fixed and feature is OK from my side.

About this

Also I added in another commit one fix related to release note of shortcut. I added here because that pr is already merged.

I'd change to avoid the word FAB in the release notes, that's pretty technically scoped to Android and non-advanced users will not understand.

@Aitorbp

Aitorbp commented Jun 21, 2024

Copy link
Copy Markdown
Contributor Author

Crash is fixed and feature is OK from my side.

About this

Also I added in another commit one fix related to release note of shortcut. I added here because that pr is already merged.

I'd change to avoid the word FAB in the release notes, that's pretty technically scoped to Android and non-advanced users will not understand.

Changed by floating button @jesmrec

@Aitorbp Aitorbp force-pushed the feature/show_same_remove_dialog_for_every_file_folder branch from 30a8e90 to b3d2900 Compare June 24, 2024 06:35
@jesmrec jesmrec dismissed joragua’s stale review June 24, 2024 07:07

provisionally out of the team

@jesmrec

jesmrec commented Jun 24, 2024

Copy link
Copy Markdown
Contributor

Approved

@Aitorbp Aitorbp force-pushed the feature/show_same_remove_dialog_for_every_file_folder branch from b3d2900 to a9cc631 Compare June 24, 2024 09:44
@Aitorbp Aitorbp merged commit 697e742 into master Jun 24, 2024
@Aitorbp Aitorbp deleted the feature/show_same_remove_dialog_for_every_file_folder branch June 24, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Show same remove dialog for every kind of file or folder

4 participants