Merge pull request #8991 from JosJuice/android-rumble-without-touchscreen
Android: Remove touchscreen check for rumble
This commit is contained in:
commit
0f4cf4a84d
|
@ -1177,11 +1177,6 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
.commit();
|
||||
}
|
||||
|
||||
public boolean deviceHasTouchScreen()
|
||||
{
|
||||
return mDeviceHasTouchScreen;
|
||||
}
|
||||
|
||||
public String getSelectedTitle()
|
||||
{
|
||||
return mSelectedTitle;
|
||||
|
@ -1204,7 +1199,7 @@ public final class EmulationActivity extends AppCompatActivity
|
|||
|
||||
public void initInputPointer()
|
||||
{
|
||||
if (deviceHasTouchScreen())
|
||||
if (mDeviceHasTouchScreen)
|
||||
mEmulationFragment.initInputPointer();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,9 +22,7 @@ public class Rumble
|
|||
{
|
||||
clear();
|
||||
|
||||
if (activity.deviceHasTouchScreen() &&
|
||||
PreferenceManager.getDefaultSharedPreferences(activity)
|
||||
.getBoolean("phoneRumble", true))
|
||||
if (PreferenceManager.getDefaultSharedPreferences(activity).getBoolean("phoneRumble", true))
|
||||
{
|
||||
setPhoneVibrator(true, activity);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue