Small fix to gyroscope config setting

This commit is contained in:
pelya
2013-05-06 19:25:34 +03:00
parent f47aaaea8e
commit 56141f19f0
3 changed files with 7 additions and 4 deletions

View File

@@ -2406,8 +2406,11 @@ class Settings
{
if( !Globals.AppUsesGyroscope || !AccelerometerReader.gyro.available(p) )
{
Toast toast = Toast.makeText(p, p.getResources().getString(R.string.calibrate_gyroscope_not_supported), Toast.LENGTH_LONG);
toast.show();
if( Globals.AppUsesGyroscope )
{
Toast toast = Toast.makeText(p, p.getResources().getString(R.string.calibrate_gyroscope_not_supported), Toast.LENGTH_LONG);
toast.show();
}
goBack(p);
return;
}