Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2546

Weird split view animation when recording audio files in iPad

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5.1
    • Fix Version/s: 3.5.2
    • Component/s: iOS
    • Labels:
    • Testing Instructions:
      Hide
      1. Install the app in an iPad device.
      2. Login as a teacher and go to a forum that accepts attachments.
      3. Click to add a new discussion.
      4. Write some text in the title or the body.
      5. Click to add an attachment and select "Audio".
      6. Click "Done" without recording any audio. Check that there is no weird animation and you don't see any modal saying that you will lose your changes.
      Show
      Install the app in an iPad device. Login as a teacher and go to a forum that accepts attachments. Click to add a new discussion. Write some text in the title or the body. Click to add an attachment and select "Audio". Click "Done" without recording any audio. Check that there is no weird animation and you don't see any modal saying that you will lose your changes.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Sprint:
      Moodle Mobile 3.5.2

      Description

      When the audio recorder is opened in the iPad, the view is always switched to portrait and the width is decreased because there's a "white" space in the view. This makes ion-split-pane detect that we are no longer in tablet, and our code to deactivate the split view is executed. When the recorder is closed the split view is activated again. This causes a weird animation when the recorder is closed (see attached video).

      The javascript code is not frozen while the recorder is opened, so we cannot use timeouts or similar. We should either:

      1. Remove our code to navigate when the split view is activated/deactivated.
      2. Use a global flag to disable the navigation. This flag should be turned on before opening the audio recorder in iOS, and turned off when it's closed.
        OR
      3. Check if there's any way to detect that the audio recorder is opened, but I didn't find any so far.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Pau Ferrer
            Integrator:
            Juan Leyva
            Tester:
            Juan Leyva
            Participants:
            Component watchers:
            Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/Sep/18