briar merge requestshttps://code.briarproject.org/briar/briar/-/merge_requests2021-10-07T11:39:50Zhttps://code.briarproject.org/briar/briar/-/merge_requests/1349Introduce ViewModel for IntroductionActivity (and ContactChooserFragment)2021-10-07T11:39:50ZSebastianIntroduce ViewModel for IntroductionActivity (and ContactChooserFragment)Test instructions:
1. Check that contact list used displays correctly
* Go into a conversation
* menu → make introduction
* check that list does not contain the contact you're introducing
2. Check that contact list used upda...Test instructions:
1. Check that contact list used displays correctly
* Go into a conversation
* menu → make introduction
* check that list does not contain the contact you're introducing
2. Check that contact list used updates properly
* On some device (A) repeat steps from 1.
* While the contact selection list is open: use a different device (B) and sent a message to (A). Make sure the number of unread messages displayed on (A) updates and also the contact moves up to the top as it now is the contact with the last recent message
3. Check that selecting a contact works
* Repeat steps from 1.
* select a contact and check that the next screen show the expected contacts
4. Make sure going back to contact selection and repeatedly selecting contacts works as expected
* Repeat steps from 3.
* Navigate back to the list of contacts to introduce your contact to
* Select a different contact than before, check that the next screen show the contact selected the second time
* Just to be sure, try again with a third contact
5. Check screen rotation doesn't break anything
* Repeat steps from 4.
* During navigation, rotate device at different times during the processAdapt to changes in the Android platformTorsten GroteTorsten Grotehttps://code.briarproject.org/briar/briar/-/merge_requests/1531Enable connect via Bluetooth feature in release builds2021-08-31T13:07:59ZakwizgranEnable connect via Bluetooth feature in release buildsAdapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1524Add simple UI for Connect via Bluetooth feature2021-08-30T13:58:27ZTorsten GroteAdd simple UI for Connect via Bluetooth featureCloses #1821, #2151Closes #1821, #2151Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1451Show instructions for locking Briar to the Xiaomi recent apps list2021-05-31T13:38:44ZakwizgranShow instructions for locking Briar to the Xiaomi recent apps listThis branch adds a button to the setup screen showing instructions for locking Briar to the recent apps list on Xiaomi/Redmi phones.
The ability to lock apps to the recent apps list has existed [since MIUI 6](https://www.webcazine.com/1...This branch adds a button to the setup screen showing instructions for locking Briar to the recent apps list on Xiaomi/Redmi phones.
The ability to lock apps to the recent apps list has existed [since MIUI 6](https://www.webcazine.com/15313/miui-6-how-to-remove-the-lock-icon-on-an-app-in-task-manager/) (released in [2014](https://en.wikipedia.org/wiki/MIUI#Version_history)) and perhaps earlier. [Since MIUI 10](https://www.webcazine.com/forums/updated-my-mi-phone-to-miui-10-now-how-do-i-lock-an-app-in-recent-view/), locking is done by long-pressing on the app rather that swiping down, so the instructions depend on the MIUI version, which is independent from the Android version and has to be looked up using a system property.
I've only tested this branch on one phone, the Redmi Note 7 (MIUI 12). It's possible that the system property holding the MIUI version is missing or has a different format on other devices. If we can't parse the system property we default to showing the instructions for MIUI < 10.
It's possible that some users are running MIUI < 6 on Android 4. I haven't been able to find out whether the lock feature exists on MIUI < 6. Checking the system property for a version < 6 doesn't seem very useful, as we don't know if the system property exists on those versions. So users running those versions may see instructions that don't apply to their device, but they can still continue with setup.
Closes #2009
![device-2021-05-05-130002](/uploads/1889610cc2c0833716b07a4314e70934/device-2021-05-05-130002.png) ![device-2021-05-05-130017](/uploads/533a8c7eb33bb044768d3bf65f823977/device-2021-05-05-130017.png)Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1462Automatically scroll to our own blog posts2021-05-19T09:35:14ZTorsten GroteAutomatically scroll to our own blog postsCloses #2043Closes #2043Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1456Remove duplicate code due to merge mistake2021-05-10T11:55:41ZakwizgranRemove duplicate code due to merge mistakeCloses #2032Closes #2032Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1446Connect via Bluetooth: Wait before showing an error Toast2021-05-06T13:14:34ZTorsten GroteConnect via Bluetooth: Wait before showing an error ToastIf there's an incoming connection, we can show a success instead and appear less buggy.
Addressed most of #2005, but doesn't resolve all issues that might be present here.If there's an incoming connection, we can show a success instead and appear less buggy.
Addressed most of #2005, but doesn't resolve all issues that might be present here.Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1450Disable polling while doing connect-via-BT2021-05-06T12:59:41ZDaniel LublinDisable polling while doing connect-via-BTCloses #2027Closes #2027Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1366Introduce ViewModel for RssFeed*Activity2021-05-03T12:35:34ZDaniel LublinIntroduce ViewModel for RssFeed*ActivityCloses #1894
# Testing instructions
This MR refactors the whole RSS Feed system.
Access RSS Feeds-screen in the "action overflow" (3 dots-icon) in the app bar
of the Blogs activity.
It is at all times during testing -- like after ac...Closes #1894
# Testing instructions
This MR refactors the whole RSS Feed system.
Access RSS Feeds-screen in the "action overflow" (3 dots-icon) in the app bar
of the Blogs activity.
It is at all times during testing -- like after actions taken, events occuring
etc -- relevant to rotate the device and ensure that:
- Text entered in fields, switches toggled etc remain so
- Visibility of progressbars and buttons are the same
- Labels on buttons remain the same
- Opened dialog boxes remain so
## Import a feed
- Tap Plus-icon in the app bar
- Enter a feed URL
- example valid feed: https://briarproject.org/news/index.xml
- invalid feed (a HTML page): https://briarproject.org
- Tap import
- Wait for import to succeed, and to be returned to RSS Feeds-screen.
- or expect import-failed dialog, if feed was invalid
- Verify that successfully added feed appears in list on RSS Feeds-screen.
### Be impatient, after "Tap import" above:
- Return to previous screen ◁
- Wait for successfully added feed to appear in list
- Or, in the case of an invalid feed, expect import-failed dialog.
### Be even more impatient, after "Tap import" above:
- Return to previous screen ◁
- Tap Plus-icon to add a new feed while the first one is being processed
- Expect the progressbar to be visible
- Expect to be returned to RSS Feeds-screen once ongoing import is successfulAdapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1445Raise target API level to 30, upgrade build tools to 30.0.32021-04-30T17:44:52ZakwizgranRaise target API level to 30, upgrade build tools to 30.0.3Closes #1827Closes #1827Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1427Make more use of DbViewModel#handleException()2021-04-27T13:46:10ZSebastianMake more use of DbViewModel#handleException()Closes #1973
Draft because we probably want to wait for all the other view model work to finish before merging this to avoid conflicts in them. Easier to rebase these changes here.Closes #1973
Draft because we probably want to wait for all the other view model work to finish before merging this to avoid conflicts in them. Easier to rebase these changes here.Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1412Implement connect via Bluetooth backend2021-04-27T12:27:59ZDaniel LublinImplement connect via Bluetooth backendCloses #1962Closes #1962Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1357Finish migrating KeyAgreementActivity to ViewModel2021-04-27T10:46:53ZTorsten GroteFinish migrating KeyAgreementActivity to ViewModelThe code has been refactored substantially (though almost all functionality should have stayed the same), so a faster way to review the code might be to check out the `nearby` package in Android studio and otherwise look at the diffs of ...The code has been refactored substantially (though almost all functionality should have stayed the same), so a faster way to review the code might be to check out the `nearby` package in Android studio and otherwise look at the diffs of the individual commits.
Test instructions:
* Add two contacts with the nearby option
* try all sorts of variations and complications when doing it:
* revoke permissions in system settings for briar
* rotate screen in odd places through the process (especially before pressing the Next button)
* disable wifi and/or bluetooth of the phone and/or in briar itself (before starting to add contacts)
Closes #1872Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1441Add button for opening Huawei battery settings during setup2021-04-23T13:54:56ZakwizgranAdd button for opening Huawei battery settings during setupThis branch adds a button to the power management setup screen for Huawei devices running EMUI 8 or higher. The button opens the battery section of the system settings, as we can't open the App Launch screen directly.
I've tested the br...This branch adds a button to the power management setup screen for Huawei devices running EMUI 8 or higher. The button opens the battery section of the system settings, as we can't open the App Launch screen directly.
I've tested the branch on devices running EMUI 9 and 10. I don't have a device running EMUI 8, but [this Huawei Community post](https://consumer.huawei.com/en/community/details/%5BBattery-Tips%5D-Understanding-Huawei%26apos%3Bs-App-Launch/topicId_3858/) says that the App Launch screen exists on EMUI 8.
Part of #1743Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1432Create ViewModels directly after injection2021-04-22T14:59:08ZSebastianCreate ViewModels directly after injectionCloses #1914Closes #1914Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1438Replace switch statements with resource ids with if-then-else2021-04-22T13:34:38ZSebastianReplace switch statements with resource ids with if-then-elseCloses #1883Closes #1883Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1434Reset plugin assignments when starting AddNearbyContactIntroFragment2021-04-21T15:57:20ZTorsten GroteReset plugin assignments when starting AddNearbyContactIntroFragmentFixes #1999Fixes #1999Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1398Simple version of Connect via Bluetooth UI2021-04-21T11:57:59ZTorsten GroteSimple version of Connect via Bluetooth UI![device-2021-04-13-113913](/uploads/085a56e45fa85fe6a5d315f44ddd2e9a/device-2021-04-13-113913.mp4)
Should implement all of #1961 (and more)![device-2021-04-13-113913](/uploads/085a56e45fa85fe6a5d315f44ddd2e9a/device-2021-04-13-113913.mp4)
Should implement all of #1961 (and more)Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1425Broadcast ContactAliasChangedEvent to update contact list2021-04-15T15:35:47ZSebastianBroadcast ContactAliasChangedEvent to update contact listCloses #1944Closes #1944Adapt to changes in the Android platformhttps://code.briarproject.org/briar/briar/-/merge_requests/1429Fix SettingsActivityScreenshotTest and enable scheduled emulator tests2021-04-15T15:30:33ZTorsten GroteFix SettingsActivityScreenshotTest and enable scheduled emulator testsAdapt to changes in the Android platform