Use minSdk in NotificationsPlugin
ClosedPublic

Authored by nicolasfella on Dec 29 2017, 2:32 PM.

Details

Summary

Depends on D9546
Depends on D9619

Make use of the new minSdk feature.

Diff Detail

Repository
R225 KDE Connect - Android application
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nicolasfella requested review of this revision.Dec 29 2017, 2:32 PM
nicolasfella created this revision.

Could you separate the real changes and the formatting changes? Or skip the formatting changes altogether? That makes reviewing easier ๐Ÿ˜ƒ

Extracted real changes from coding style changes

nicolasfella edited the summary of this revision. (Show Details)Jan 2 2018, 9:13 PM
nicolasfella edited the summary of this revision. (Show Details)
mtijink added inline comments.Jan 3 2018, 7:21 PM
src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
417

This line shouldn't be removed, as it's a different version check than the other code.

453

Same here.

462โ€“464

Why was this version check introduced? That version is already required by the @RequiresApi annotation.

574

Why Jelly Bean? As I understand the code, it should work with Kitkat.

nicolasfella added inline comments.Jan 3 2018, 7:31 PM
src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
417

It's already checked before loading the plugin

462โ€“464

As far as I understand the Annotation is just to suppress warnings/show developers that a specific version is needed. We have to make sure ourself that replyToNotification isn't called.

Correct me if I'm wrong

574

NotificationListenerService requires 18/JELLY_BEAN_MR2, without this the whole Plugin doesn't make much sense. 20/KITKAT_WATCH is only needed for the reply feature

mtijink accepted this revision.Jan 3 2018, 7:39 PM
mtijink added inline comments.
src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java
462โ€“464

You're right, the phabricator diff viewer was a bit unclear to me.

574

Ah, I got confused with alphabetical ordering ๐Ÿ˜…

This revision is now accepted and ready to land.Jan 3 2018, 7:39 PM
nicolasfella marked 9 inline comments as done.Jan 3 2018, 7:40 PM
This revision was automatically updated to reflect the committed changes.