- May 09, 2015
-
-
Daniel Martí authored
-
Hans-Christoph Steiner authored
When a device is setup as a WiFi Access Point aka "hotspot", the standard API for getting the WiFi settings returns nothing. We have to use a separate API to get the IP address of the WiFi AP. As far as I could tell, there is no public API for getting the SSID/BSSID of the WiFi AP, so for now that is left blank. That means the wifi screen in swap is confusing because it will say it is not attached when the device is a hotspot @mvdan's https://github.com/mvdan/libaccesspoint should help there #193 https://gitlab.com/fdroid/fdroidclient/issues/193
-
Hans-Christoph Steiner authored
To handle hotspots, this code will become more complicated. Therefore, first simplify things by putting all of the logic into one place, rather than spread out across FDroidApp, the receiver, and the service
-
Hans-Christoph Steiner authored
-
Hans-Christoph Steiner authored
This method handles checking if the service is running, and only restarts it if it was running.
-
Hans-Christoph Steiner authored
On launch, we need to get the current state of the Wifi. We only need to start the WifiStateChangeService on WIFI_STATE_ENABLED, since any other wifi state will be received by WifiStateChangeReceiver, which will launch WifiStateChangeService when appropriate. This reduces the chance that WifiStateChangeService will start when it is not needed.
-
Hans-Christoph Steiner authored
Before, it was keeping the last active wifi, which is confusing when you are not connected.
- May 08, 2015
-
-
Daniel Martí authored
-
Hans-Christoph Steiner authored
I was getting frequent crash-on-rotate NullPointerExceptions after scanning QR Codes. This fixes it for me. ConfirmReceiveSwapFragment is only ever used once in ConnectSwapActivity, so it is a pointless abstraction. It makes the code a lot more complicated and also creates very complicated situations to handle when the screen is rotated. All of this gets much easier when everything is just included in the Activity, since there is no problem being solved by the Fragments. Fragments are for reusing chunks of UI in multiple places, or for showing multiple chunks of UI in the same Activity. Both of those cases can also be handled, arguably better, without using Fragments: https://corner.squareup.com/2014/10/advocating-against-android-fragments.html
-
Hans-Christoph Steiner authored
-
Hans-Christoph Steiner authored
This gets rid of the .updater package, which now only contains RepoUpdater
-
Hans-Christoph Steiner authored
This has been discussed quite a bit now. It is very easy to generate a signed repo on the server, and supporting unsigned repos adds complexity and security issues, including "BZ-01-002 TOFU Requests too easy to recognize and intercept" from the audit. https://gitlab.com/fdroid/fdroidserver/merge_requests/48 closes #12 https://gitlab.com/fdroid/fdroidclient/issues/12
-
Hans-Christoph Steiner authored
-
Hans-Christoph Steiner authored
-
- May 07, 2015
-
-
Daniel Martí authored
-
Hans-Christoph Steiner authored
-
Hans-Christoph Steiner authored
* pub: is for searching by "Publisher Name": market://search?q=pub:Guardian%20Project * pname: is an old way to specify "Package Name": market://search?q=pname:org.torproject.android https://developer.android.com/distribute/tools/promote/linking.html
-
Hans-Christoph Steiner authored
No need to have the version set it more than one place!
-
Hans-Christoph Steiner authored
This fixes bad logic introduced in c52262a4
-
Hans-Christoph Steiner authored
These needed to be pathPattern rather than path in order to make the IntentFilter treat the .* as a regexp rather than a string literal.
-
Daniel Martí authored
-
Daniel Martí authored
On api 19 or later, writing to your own private directory on the SD doesn't require any extra dependencies. We only ever store icons, apks and index stuff on the private repo, so we never read/write anywhere else on the SD.
- May 03, 2015
-
-
Daniel Martí authored
-
Daniel Martí authored
-
Daniel Martí authored
This basically removes public, static and final from interfaces since it's always that way.
-
Daniel Martí authored
-
Daniel Martí authored
-
Daniel Martí authored
Add missing import Without this gradle shows an error... See merge request !72
-
Nico Alt authored
-
- Apr 30, 2015
-
-
Daniel Martí authored
-
Daniel Martí authored
-
Daniel Martí authored
-
Daniel Martí authored
String.replaceAll(String, String) isn't in-place!
-
Daniel Martí authored
-
Daniel Martí authored
-
Daniel Martí authored
-
Daniel Martí authored
-
- Apr 29, 2015
-
-
Daniel Martí authored
-