summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-08-05Fail build on findbugs failuresprivate/ajrhunt/findbugs-1Andrzej Hunt1-2/+1
We've fixed all medium and high priority issues, we can now block any new issues from being introduced.
2017-08-05findbugs: medium: suppress ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD for nowAndrzej Hunt1-0/+3
2017-08-05Don't overload superclass methodAndrzej Hunt1-2/+2
This confused me a bit. We'll need separate methods to bind to the CommunicationService vs CommunicationServiceWear which makes this even more necessary.
2017-08-02findbugs: medium: SF_SWITCH_NO_DEFAULTAndrzej Hunt1-2/+4
We now also return a correct value when not handling events.
2017-08-02findbugs: medium: WMI_WRONG_MAP_ITERATORAndrzej Hunt1-3/+6
This is much cleaner IMHO, although the preferences API is confusing.
2017-08-02findbugs: medium: UWF_UNWRITTEN_FIELDAndrzej Hunt1-18/+0
It looks like I copied too much while refactoring in b96971e130d544a1917ceca91f0019500aaf3907. The superclass (AbstractSlideFragment) already has its own IntentsReceiver which it handles correctly, I managed to cargo-cult the cleanup code but we never bother to initialise or use it in PointerFragment.
2017-08-02Boost findbugs to mediumAndrzej Hunt1-2/+2
All (2) high priority issues have been fixed.
2017-08-02findbugs: medium: DM_DEFAULT_ENCODINGAndrzej Hunt1-1/+2
2017-08-02findbugs: high: DMI_RANDOM_USED_ONLY_ONCEAndrzej Hunt1-1/+5
2017-07-28Add findbugs supportAndrzej Hunt2-0/+48
These changes are largely imported from Mozilla's Focus for Android project ( https://github.com/mozilla-mobile/focus-android ), where the original commits were also prepared by yours truly.
2017-01-31Bumped Gradle versions (2.2.2 -> 2.2.3)aleksandar-stefanovic1-2/+2
And also build tools (25.0.0 -> 25.0.1). Change-Id: I1fa38955f3c6f79dcba92edfc7ee8281e85ea84c Reviewed-on: https://gerrit.libreoffice.org/33373 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-12-01Fixed NetworkOnMainThreadExceptionaleksandar-stefanovic1-7/+12
Fixed NetworkOnMainThreadException caused by, well, using network calls on the main thread, caused by CommandsTransmitter:44, by wrapping the problematic code in a Thread. Change-Id: I03ae25cb8e338b9d0747925b10a57df2ac258c18 Reviewed-on: https://gerrit.libreoffice.org/30501 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-10-21add some design-time layout text to preferences layoutChristian Lohmaier1-0/+4
Change-Id: I7951b50e4edd8b660e1aabfed39e5a8996811611
2016-10-21android:singleLine is deprecated: Use maxLines="1" insteadChristian Lohmaier3-34/+4
Change-Id: I3d6db8a808305ac61ae25d9c1ca70f9ce2e8c625
2016-10-21Android context classes should not be staticChristian Lohmaier2-6/+3
As the inspection message reads: "Do not place Android context classes in static fields; this is a memory leak (and also breaks Instant Run)" also remove three unused imports Change-Id: I87d19ca976dd600f957f407920c03f673007d49f
2016-10-21bump gradle, build tools, target and support-lib versionsChristian Lohmaier4-13/+10
also move targetSdkVersion to the global settings Change-Id: I8629f637bf5f3166ad63ba944d27799f06870aa1
2016-10-21use orange color scheme (Impress color)Miroslav Mazel1-13/+3
Change-Id: I06bbbb6e588d1c1071340e021fd7b0caa594cdb1 Reviewed-on: https://gerrit.libreoffice.org/28887 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-10-14Toolbar background shared with the tab bar, as per the Material HIGMiroslav Mazel4-23/+33
Change-Id: I914ed8b192544fbfb8502d94b9a21a46a9ba7595 Reviewed-on: https://gerrit.libreoffice.org/28935 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-10-14Settings redesigned based on material design guidelinesMiroslav Mazel3-6/+49
Change-Id: I19feb32ba782c3841dc492f9f88fb907b937cec0 Reviewed-on: https://gerrit.libreoffice.org/28886 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-10-08update from pootlejan Iversen25-0/+0
Pulled newest android strings (no change) and ios string (changes)
2016-08-29Material launcher iconsMiroslav Mazel17-0/+857
Change-Id: I87d4bf47c64cd84c5ee593f505122060f3223243 Reviewed-on: https://gerrit.libreoffice.org/28260 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-08-24Revert "update pootle strings"Jan Iversen25-0/+0
This reverts commit f2419511b6ab7b441c30a6b01e5e12d024a64b31. somehow po2prop produces binary output.
2016-08-24update pootle stringsJan Iversen25-0/+0
This is a manual update, as a prelude to the automatic pootle updates
2016-08-24update with newest pootle stringsJan Iversen24-112/+166
This update is done manually as a prelude to the automatic updates
2016-08-15Added translations available in pootle.Jan Iversen61-0/+0
Updated source tree with files from pootle
2016-08-11update for pootle automatic commitJan Iversen22-0/+0
Added strings from pootle, not currently in repo
2016-05-27Change FAB rotate to alpha animationaleksandar3-18/+13
Personally I've found this FAB rotation a bit silly. Additionally, it caused issues on older Android versions where shadows aren't dynamic but rather are hard-coded into the view, which means that the FAB's shadow would rotate along with the FAB. The new animation is a kind of a pulse animation (the alpha follows a sinusoidal path) which, although I think is imperfect, seems much better that the current one. Originally, I wanted to create a really cool animation where the signal bars of the icon would rotate around the bluetooth icon when seeking, but I had some issues with clipping, and the fact that AnimatedVectorDrawable is supported only on API 11 and up. Change-Id: I81d334004b4db9dde6f63cb3e9502ed606b60825 Reviewed-on: https://gerrit.libreoffice.org/25034 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-05-14fix material design on v23 by adding drawableTintChristian Lohmaier10-96/+54
save/cancel iconds were't rendered in correct color on v23 devices, since it applies different tint to drawables. support library 23.4.0 adds back support for vector drawables using indirection, so define icons in xml again using said indirection. Also merge themes.xml and styles.xml into one file as suggested by https://gerrit.libreoffice.org/#/c/24066/ Change-Id: I50753f55158972232610559eb56b4040e09a3720
2016-04-18New vector based icons from google's material iconsaleksandar53-13/+112
New menu icons, taken from Google's icon source: https://design.google.com/icons use support library's features to also use the vector icons on pre-v21 devices, requires quirk to get icon into TextView Turn off creation of PNGs in android studio as well. While the vector icons by default are black, the color is overridden with android:tint Change-Id: Ib34055dd0c2dfcabe607f46dc7c21c5150e7d98c Reviewed-on: https://gerrit.libreoffice.org/24119 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-04-14setOnPageChangeListener is deprecated, use addOnPageChangeListenerChristian Lohmaier1-1/+1
Change-Id: I4d99db91896e5f08256603e3db420d384843a8c6
2016-04-14getColor(int) is deprecated, replace with ContextCompat.getColorChristian Lohmaier1-4/+5
Change-Id: Idafe66254d84ad85d0eab8f35782ee5d90125b6a
2016-04-14Cleanup legacy filesaleksandar23-79/+0
Deleted legacy files (mostly action bar resources) which are not used anymore. There are probably more files to remove. Change-Id: Ib1b762fc7e5b013b62286bcf6923ced9b745c1d9 Reviewed-on: https://gerrit.libreoffice.org/24090 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-04-14show logo in ComputersActivity actionbarChristian Lohmaier3-1/+9
for some reason appcompat doesn't add padding, so take the detour using a drawable definition that adds some padding Change-Id: Ibe2a5d3a49b83dde8fbb68d33f9ddd1cf443e2e3
2016-04-13Correct the Wi-Fi stringaleksandar1-1/+1
This bothered me more than it should, so I created a bite-size commit of it. Change-Id: I5b36c4b67afc611cb5f2462897bd41711362dbae Reviewed-on: https://gerrit.libreoffice.org/24045 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2016-04-13add android studio project filesChristian Lohmaier11-9/+148
otherwise git clean -fdx will force to reimport the project from gradle also drop pre-gradle paths from .gitignore Change-Id: Ibf2a68b8d4ed53e57f8682d0821cf117a855cf63
2016-04-13start migration to Material design using appcompatChristian Lohmaier14-170/+237
start with ComputersActivity, inspired by Aleksandar's changes https://gerrit.libreoffice.org/#/c/23867/ – but wihout the need to bump the minSdkVersion. Changes: * use FloatingActionButton for bluetooth discovery and adding computers * use simple animation while discovering (just rotates the button) * use TabLayout for the Wifi and Bluetooth tabs * use TextInputLayout for adding computers via IP * switch to green based color palette using LO Branding colors the color tweaks are to play around/tweak some more, and there have been no adjustments for tablet layout yet Change-Id: Icfb8d294ed8fdd90f9b532a2037810f6efbc826d
2016-04-11simplify theme handling & switch to AppCompatActivityChristian Lohmaier7-65/+25
Since ActionBarActivity is now deprecated → use AppCompatActivity theme handling simplified by using inheritance and appcompat features. Change-Id: I71ae03ca7162c4975edc36a2a6178ea9713108ee
2016-04-11use PreferenceFragment instead of PreferenceActivity for SettingsChristian Lohmaier6-10/+50
PreferenceActivity already was deprecated since v11 initial patch by Aleksandar would have needed a bump of minSdkVersion, but appcompat supports the same way in a downwards compatible way. Change-Id: I4c5776bbf57a2ce62411dcfec18d055f5cb01358 Reviewed-on: https://gerrit.libreoffice.org/23817 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-04-11no need for a separete v11 layout (action_bar_computer_creation)Christian Lohmaier2-80/+14
the appcompat lib takes care of that (when using theme references instead of direct @stlye statements) also add android:drawableStart attribute for better RTL support of the icon placement v11 version was moved to default and adjusted accordingly Change-Id: Ib1273480e4495657984259f71eda12616b131f79
2016-04-11bump support library (v4 & v7) version to 23.3.0Christian Lohmaier1-4/+5
and avoid "Not all execution paths return a value" inspection warning Change-Id: I3b22369119eb309497963767f35f99ca04866d7b
2016-04-11Initial Serbian translationaleksandar1-0/+62
Initial Serbian translation, one or two lines could possibly be made better (if some has better idea for translation of specific phrases), but all translations are clear and correct. Change-Id: Ief47c301c45233e6b542b8a21e017eb422c69925 Reviewed-on: https://gerrit.libreoffice.org/23922 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-04-11Change gradle files (1.5.0 -> 2.0.0)aleksandar2-3/+3
!REQUIRES ANDROID STUDIO 2.0! Updated Gradle setup to support Android Studio 2.0 features like Instant Run and better performance. You must download Android Studio 2.0 and new Gradle files (and newest SDKs available, for good measure). Change-Id: I44a0ee224b6719e0b5b2ab20e997ba284321dc9d Reviewed-on: https://gerrit.libreoffice.org/23906 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2016-04-06Newer build APIs in gradle configaleksandar3-8/+8
Updated all three build.gradle files to the newer APIs (build APIs should always be as new as possible) At the moment, minimum API level remains the same, but it will need to be changed in the future (which isn't a big problem, since the app will be supported by ~98% of the devices even after the change) Change-Id: I8bf44ef31387f82d16862c3d728b85c871b858d8 Reviewed-on: https://gerrit.libreoffice.org/23857 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2015-12-24[LAYOUT] Increase buttons for wearables, privious buttons was too smallmariopce3-52/+66
Change-Id: Idf3dbeb757c39a38703fc393e91509104d870559 Reviewed-on: https://gerrit.libreoffice.org/19975 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2015-09-17sdremote: LibreOffice Remote for Impress version 2.2.3sdremote-2.2.3Christian Lohmaier1-2/+2
Change-Id: Icb5d828d700881042564af12fb3168566a810ea4
2015-09-17only include wearable part of play services and register CommunicationServiceChristian Lohmaier7-95/+19
including only wearable part avoids packing Megabytes of non-used stuff, and registering the CommunicationService should fix crashes when trying to manually add computers additionaly some minor code cleanup and delete obsolete Makefile and bump version of v4 support lib Change-Id: I82036d5e854701d9880f8c5d8f8ddc2603be6bf6
2015-09-17sdremote: remove redundant public modifier from interface methodsChristian Lohmaier5-20/+16
also simplify one if-statement Change-Id: I0f488354b607c68b1389be67335f61944a152689
2015-09-16sdremote: use apply() instead of commit() to store propertiesChristian Lohmaier6-9/+9
so android can do that in the background, we don't need them stored immediately. Also remove some redundant static modifier from enums Change-Id: I9e3755e601172c45c14d74db23810432dc582bfb
2015-09-16update translations for android remoteChristian Lohmaier4-6/+7
Change-Id: Iae966ec53feeee2a016f0adc07227b9592e718bc
2015-09-16allow to build a version that doesn't make use of com.google apisChristian Lohmaier8-39/+77
minimal variant builds without wearable component, althought to satisfy gradle's configuration parsing, you still have them on the buildsystem Change-Id: I60721a14e29f15759398ed9f9e038116a50df562