From c2d602eff4a2894a08d4465fdd832049c2b5b75c Mon Sep 17 00:00:00 2001 From: Electric Date: Mon, 11 May 2020 20:43:27 +0300 Subject: [PATCH] Improved landscape layouts & fixed website link in about page. --- .../java/com/dosse/airpods/AboutActivity.java | 5 +- .../java/com/dosse/airpods/PodsService.java | 3 +- .../main/res/layout-land/activity_about.xml | 85 +++++++++++++++++++ .../main/res/layout-land/activity_main.xml | 54 ++++++++++++ .../src/main/res/layout/activity_about.xml | 4 +- 5 files changed, 147 insertions(+), 4 deletions(-) create mode 100644 OpenPods/app/src/main/res/layout-land/activity_about.xml create mode 100644 OpenPods/app/src/main/res/layout-land/activity_main.xml diff --git a/OpenPods/app/src/main/java/com/dosse/airpods/AboutActivity.java b/OpenPods/app/src/main/java/com/dosse/airpods/AboutActivity.java index 80e1ab7..74fd9aa 100644 --- a/OpenPods/app/src/main/java/com/dosse/airpods/AboutActivity.java +++ b/OpenPods/app/src/main/java/com/dosse/airpods/AboutActivity.java @@ -11,15 +11,16 @@ import androidx.appcompat.app.AppCompatActivity; public class AboutActivity extends AppCompatActivity { final String githubURL = "https://github.com/adolfintel/OpenPods"; - final String websiteURL = "https://fdossena.com/?p=openPods/i.frag"; + final String websiteURL = "https://fdossena.com/?p=openPods/index.frag"; final String donateURL = "https://paypal.me/sineisochronic"; + @SuppressWarnings("DanglingJavadoc") @Override protected void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_about); - /* + /** * LEGAL DANGER ZONE! * * The following actions are a violation of the GNU GPLv3 License: diff --git a/OpenPods/app/src/main/java/com/dosse/airpods/PodsService.java b/OpenPods/app/src/main/java/com/dosse/airpods/PodsService.java index 7d9622e..b5daa50 100644 --- a/OpenPods/app/src/main/java/com/dosse/airpods/PodsService.java +++ b/OpenPods/app/src/main/java/com/dosse/airpods/PodsService.java @@ -61,7 +61,8 @@ public class PodsService extends Service { * - Decode the beacon to get the status *

* On a normal OS, we would use the bluetooth address of the device to filter out beacons from other devices. - * UNFORTUNATELY, someone at google was so concerned about privacy (yea, as if they give a shit) that he decided it was a good idea to not allow access to the bluetooth address of incoming BLE beacons. As a result, we have no reliable way to make sure that the beacon comes from YOUR airpods and not the guy sitting next to you on the bus. + * UNFORTUNATELY, someone at google was so concerned about privacy (yea, as if they give a shit) that he decided it was a good idea to not allow access to the bluetooth address of incoming BLE beacons. + * As a result, we have no reliable way to make sure that the beacon comes from YOUR airpods and not the guy sitting next to you on the bus. * What we did to workaround this issue is this: * - When a beacon arrives that looks like a pair of AirPods, look at the other beacons received in the last 10 seconds and get the strongest one * - If the strongest beacon's fake address is the same as this, use this beacon; otherwise use the strongest beacon diff --git a/OpenPods/app/src/main/res/layout-land/activity_about.xml b/OpenPods/app/src/main/res/layout-land/activity_about.xml new file mode 100644 index 0000000..89f5c0d --- /dev/null +++ b/OpenPods/app/src/main/res/layout-land/activity_about.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + +