1. 10 May, 2019 1 commit
  2. 08 May, 2019 1 commit
  3. 07 May, 2019 5 commits
  4. 06 May, 2019 2 commits
    • Jeffrey I. Schiller's avatar
      Add support for a “secondary” Rendezvous Server · 67407991
      Jeffrey I. Schiller authored
      The primary rendezvous server is used for the initial rendezvous,
      whether using WebRTC or not (Legacy Mode). This change provides the
      location for a secondary rendezvous server to use for the WebRTC
      negotiation. This is only done if the Companion indicates that it
      supports this feature (sets “r2” to true in the JSON object it
      posts). Any information provided by the Companion can be used by the
      primary rendezvous server to determine which secondary server to use.
      
      Change-Id: I8706c4f0fe66a0e902595689896003feff9cdff7
      67407991
    • Susan Rati Lane's avatar
      1439 german translation for ai (#1671) · e11af9db
      Susan Rati Lane authored
      German translation with multiple authors:
      Author: Marina de Queiroz Tavares <dqtm@zhaw.ch>
      Author: Matthias Müller <matthias.mueller.2@uni-jena.de>
      Author: Lyndsey Bonelli <lyn.bonelli@gmail.com>
      e11af9db
  5. 26 Apr, 2019 1 commit
  6. 25 Apr, 2019 1 commit
    • Evan W. Patton's avatar
      Fix performance issue in project list (#1663) · c0193fea
      Evan W. Patton authored
      The onProjectAdded method of ProjectList will sort and refresh the
      table, which is an `O(n log n)` operation. However, when we load the
      list of projects initially, this will get called `O(n)` times,
      resulting in `O(n^2 log n)` performance. For many users, the number of
      projects might be small and this load time may appear
      negligible. However, for more prolific users with hunders of projects,
      this may result in multiple seconds wait time while the list is first
      loaded. This fix defers sorting the list until all projects have been
      added.
      
      Change-Id: I50332dd8f2993883428c79e8dafbebbe32e2c1fa
      c0193fea
  7. 24 Apr, 2019 1 commit
  8. 16 Apr, 2019 2 commits
  9. 12 Apr, 2019 2 commits
  10. 10 Apr, 2019 1 commit
  11. 04 Apr, 2019 1 commit
  12. 02 Apr, 2019 4 commits
    • Jeffrey I. Schiller's avatar
      Hide Progress Dialog on Companion Update · 68c6dfac
      Jeffrey I. Schiller authored
      When the “OK” button on the Companion Update dialog is pressed, properly
      hide the ConnectProgressBar as we are now no longer connecting.
      
      Change-Id: I4c5f24a5e8979757d6e7066c734ba40078e4a8ce
      68c6dfac
    • Evan W. Patton's avatar
      Save and restore user preferred locale · 9f415510
      Evan W. Patton authored
      For non-English users of App Inventor, if they go to the main page or
      click a link without a locale specified, for example, a repo link,
      then they will be presented App Inventor in English. This is bad from
      a UX perspective as the user then has to change the language and wait
      for the site to reload. It also interrupts whatever workflow they were
      currently doing (e.g., when opening a template project).
      
      This change stores the last locale from the query string as the user's
      preferred locale. When a locale isn't specified in the URL, we will
      check the locale and if it is set, redirect to that page
      automatically. To also save on performing actions that would be
      canceled by the redirect, we also reorder some initialization of Ode
      so that it only occurs if the redirect won't happen.
      
      Change-Id: I1b9ffa756aa08f05495832768b242341e4a30c38
      9f415510
    • Evan W. Patton's avatar
      Add missing GWT DTD for validation · 10dd3723
      Evan W. Patton authored
      Change-Id: I2502bb3bce93db98575655bfb0e0cf8dd92f1119
      10dd3723
    • Evan W. Patton's avatar
      Clean up old blocks editor code · f25c4117
      Evan W. Patton authored
      Change-Id: I44ce7d4cda5623b482283c30ebb63aea9053da83
      f25c4117
  13. 28 Mar, 2019 5 commits
  14. 27 Mar, 2019 2 commits
  15. 25 Mar, 2019 3 commits
  16. 23 Mar, 2019 8 commits
    • ZhengCornell's avatar
      Fix handling of percent lengths when changing width/height in blocks · 3abb556f
      ZhengCornell authored
      Change-Id: Ic56482d73262b9a1ddab955e8560f975f42d87a0
      3abb556f
    • Ankriti Sachan's avatar
      Add field to specify maximum permission request code · 5d0e66cf
      Ankriti Sachan authored
      The value of this variable can be changed if any class other than Activity is used as base class for Form.
      5d0e66cf
    • Jeffrey I. Schiller's avatar
      Rename image joinwithseparator.png · 59f8089e
      Jeffrey I. Schiller authored
      Changed the extension from PNG to png (because case matters!)
      
      Fixes #1620
      
      Change-Id: I6a334cfb18caa5b2a50ac4ea34109a6325a3586f
      59f8089e
    • Jeffrey Schiller's avatar
      Simplify the WebRTC Poller · 9d378ff6
      Jeffrey Schiller authored
      Eliminate the single threaded executor because it is not needed. Instead
      use Timer.scheduleAtFixedRate() to trigger the Poller once per
      second. This approach is more correct and simpler.
      
      Also, ignore an empty response from the Rendezvous server (which means
      that it hasn’t received any ICE Candidates from the browser
      yet). Previously we attempted to JSON parse it and threw an
      exception (which was logged and ignored).
      
      Change-Id: If0bc95c754a3fd052ac32cfa966fcbcfe658f55d
      9d378ff6
    • Susan Rati Lane's avatar
      Implement toggle switch control · c0cabd21
      Susan Rati Lane authored
      This is a toggle switch component. Functionally, it behaves the same as a checkbox: the ON state is equivalent to checked.
      
      Since iOS does not have a checkbox and only offers toggle switches, this component paves the way for an on/off component that is shared by both Android and iOS.
      
      The toggle switch is a 2-color control, which means that there are 4 configurable colors, 2 for on and 2 for off.
      c0cabd21
    • Colin Yang's avatar
      Add DrawShape & DrawArc into Canvas component · 95398173
      Colin Yang authored
      Allow drawing shapes (made up with lines) and arcs (or sectors)
      95398173
    • Jeffrey I. Schiller's avatar
      De-Bounce the “Connect with Code” Button · a8a4e4d1
      Jeffrey I. Schiller authored
      De-Bounce the “Connect with Code” Button in the MIT AI2 Companion
      
      The Companion's design is to setup communications with the user's
      browser and get to work. Once this process starts, enough things are in
      motion that it is best to quit the Companion and start a fresh copy if a
      different code is needed.
      
      If the same code is entered more then once, we just ignore the second
      attempt. This often happens when someone scans a QR Code and then
      presses the "Connect" Button because they do not know that they don't
      have to do that. Effectively we are "de-bouncing"
      
      Change-Id: I06b20c5d9cdb07999a380d9f877edd111e0357c5
      a8a4e4d1
    • jerry73204's avatar
      Use built-in (rejection algorithm) random sampling · f2c21102
      jerry73204 authored
      The original method, uniform integer modulo 100000, is biased in
      distribution. Now it's replaced by built-in sampling method.
      
      Java 7 API has comments on random.nextInt(int n):
      https://docs.oracle.com/javase/7/docs/api/java/util/Random.html#nextInt(int)
      f2c21102