Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vibrator for android v < 4.0 #129

Merged
merged 25 commits into from
May 3, 2015
Merged

vibrator for android v < 4.0 #129

merged 25 commits into from
May 3, 2015

Conversation

thegrymek
Copy link
Contributor

Feature exists is supported only for android SDK >= 11. Rest features work.

Tested on Samsung Galaxy I, android 2.3.

What we should do? Does we need new Exception NotSupported or just return None
Currently it returns None if SDK < 11

best regards

@@ -1,11 +1,7 @@

"""Plyer Vibrator Example."""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple, one-line docstrings like this don't add any information and should be avoided. (We know this is a Plyer Vibrator Example, because it's examples/vibrator/main.py in Plyer. Similarly we know that VibrationApp is the Main Application, and that build() returns the root widget, etc., without needing docstrings.) Also, remember to follow our standards (look at the rest of the code). We use '''''' for docstrings, not """""".

def _exists(self):
if SDK_INT >= 11:
return vibrator.hasVibrator()
return NotImplementedError()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review this line.

@dessant
Copy link
Contributor

dessant commented May 3, 2015

👍

dessant added a commit that referenced this pull request May 3, 2015
@dessant dessant merged commit 49007d9 into kivy:master May 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants