Skip to content
Snippets Groups Projects
  1. Dec 16, 2015
    • Daniel Martí's avatar
    • Daniel Martí's avatar
      Update changelog · 895cd7bb
      Daniel Martí authored
      895cd7bb
    • Peter Serwylo's avatar
      Merge branch 'fix-323--improved-search' into 'master' · 1a5b60f6
      Peter Serwylo authored
      Search as the user types
      
      Fixes #323.
      
      This does away with the separate `SearchResult` and instead applies the search to the currently viewed tab on the main screen (Available, Installed, Updates). When filtering the Available list, it filters the currently selected category.
      
      Note however that there are still times when the old style `SearchDialog` will be shown over the top of the action bar rather than the `SearchView` within the action bar. These times include:
       * When a user with a hardware keyboard starts typing from the main screen.
       * On older devices with a "search" hardware button.
       * Probably some other cases (I think when there is not enough screen real estate, but haven't seen that happen).
      
      In cases where this dialog is shown, filtering the lists as you type does not seem to be an option. I tried to figure out how to do that, but failed. If someone else figures it out, that would be great. However, when the search is submitted, it will hide the `SearchDialog` and populate the `SearchView`, focus it, and apply the search appropriately.
      
      There is a script in the `F-Droid/tools/` subdirectory which will consecutively send various intents to F-Droid relating to search. This includes Play, market, Amazon search links. For good measure, I also made it send intents to do with viewing app details. This should probably be made into a proper instrumented test at some point, but I didn't have the time to figure out how to do that. Maybe a project for future @pserwylo.
      
      One unknown is the performance implications. There is no problems on my Nexus 4 with Android 5.0. My Chinese/ebay/$30/Android 2.3.4 device seems good enough too.
      
      See merge request !177
      1a5b60f6
    • Daniel Martí's avatar
      Don't fetch language names from the system · 00e832fb
      Daniel Martí authored
      The system's are sometimes wrong, e.g. unexpected names. This also helps
      our support across different Android versions without having to worry as
      much about the system's language support.
      
      Fixes #503.
      00e832fb
    • Daniel Martí's avatar
      README: fix gradle version · 985424ac
      Daniel Martí authored
      985424ac
    • Daniel Martí's avatar
      Fix format in values-nl count · ef422140
      Daniel Martí authored
      ef422140
    • F-Droid Translatebot's avatar
      Pull translation updates from Weblate · 0f6e88d1
      F-Droid Translatebot authored
      Translators:
      
      Dario Tordoni      Italian
      Elia Argentieri    Italian
      Enol Puente        Asturian
      halcyonest         Korean
      M2ck               French
      relan              Russian
      Tobias Bannert     German
      Дмитрий Михирев    Russian
      0f6e88d1
  2. Dec 14, 2015
  3. Dec 13, 2015
    • Daniel Martí's avatar
      Update UIL and commons-net point releases · dba8cd45
      Daniel Martí authored
      dba8cd45
    • Daniel Martí's avatar
      Add Danish to the list of languages · 0cc62726
      Daniel Martí authored
      0cc62726
    • F-Droid Translatebot's avatar
      Pull translation updates from Weblate · d9c48c28
      F-Droid Translatebot authored
      Translators:
      
      Adrià García-Alzórriz      Catalan
      agilob                     Polish
      Ajeje Brazorf              Sardinian
      bd339                      Danish
      Benedikt Geißler           German
      Danial Behzadi             Persian
      Daniil Stryukov            Ukrainian
      halcyonest                 Korean
      ikmaak                     Dutch
      Ldm Public                 French
      Massimiliano Caniparoli    Italian
      Mladen Pejaković           Serbian
      Olexandr Nesterenko        Ukrainian
      Phạm Nguyễn Hoàng          Vietnamese
      relan                      Russian
      Tobias Bannert             German
      d9c48c28
    • Daniel Martí's avatar
      Merge branch 'fix-506--rename-temp-table' into 'master' · 9950ea3e
      Daniel Martí authored
      Speed up "Saving Application Details" part of repo update
      
      Fixes 506.
      
      This does the thing mentioned in 506 (renaming temp table, rather than copying data). In the process, I also identified that the temp tables were missing key indexes which slowed the process down. This fix took the update time from ~100 seconds to ~60 seconds on my Nexus 4.
      
      Below are a couple of log cats from before and after the change (this logging is not part of this MR, it was just for diagnosing the problem).
      
      *Before change:*
      
      ```
                  AppProvider  D  Calculating whether apps are compatible, based on whether any of their apks are compatible
                               D  Update compatible flags took 20244ms
                               D  Calculating suggested versions for all apps which specify an upstream version code.
                               D  Update suggested from upstream took 17808ms
                               D  Calculating suggested versions for all apps which don't specify an upstream version code.
                               D  Update suggested from latest took 129ms
                  AppProvider  D  Update icon URLs took 7879ms
                UpdateService  I  Updating repo(s) complete, took 104 seconds to complete.
      ```
      
      *After change:*
      
      ```
                  AppProvider  D  Calculating whether apps are compatible, based on whether any of their apks are compatible
                               D  Update compatible flags took 1047ms
                               D  Calculating suggested versions for all apps which specify an upstream version code.
                               D  Update suggested from upstream took 601ms
                               D  Calculating suggested versions for all apps which don't specify an upstream version code.
                               D  Update suggested from latest took 136ms
                               D  Update icon URLs took 887ms
                UpdateService  I  Updating repo(s) complete, took 63 seconds to complete.
      ```
      
      
      
      See merge request !179
      9950ea3e
    • Peter Serwylo's avatar
      Add indexes to temp tables when updating. · 1ae1ae73
      Peter Serwylo authored
      The idnexes which are added are for those columns which
      are used to calculate information such as latest upstream version.
      These queries use subqueries which seemed to be adversely
      impacted by the lack of indexes.
      
      In total, reduced update time on test device from just over 100 seconds
      to just over 60 seconds.
      1ae1ae73
    • Peter Serwylo's avatar
      Only create compatibility checker once per repo. · c24cd890
      Peter Serwylo authored
      Looks like a non-trivial amount of work is done in the constructor
      interrogating the features of the current device. This only needs
      to be done once.
      c24cd890
    • Peter Serwylo's avatar
      Rename temp tables rather than `DELETE` + `INSERT SELECT`. · 9727dc50
      Peter Serwylo authored
      This requires renaming the old app/apk tables to be deleted and
      the temp ones to be renamed. This is done in a transaction to
      ensure we always have at least `fdroid_app` and `fdroid_apk`.
      Well, two transactions, one for renaming the `fdroid_app` table
      and one for `fdroid_apk`.
      9727dc50
  4. Dec 08, 2015
  5. Dec 07, 2015
  6. Dec 05, 2015
Loading