danger.system
Class Preferences

java.lang.Object
  extended by danger.system.Preferences


public class Preferences
extends Object


Method Summary
static boolean getDpadMatchesTrackball()
          Determine whether the D-pad should match the trackball behavior.
static void setDpadMatchesTrackball(boolean dpadMatches)
          Specify whether the D-pad should match the trackball behavior.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDpadMatchesTrackball

public static void setDpadMatchesTrackball(boolean dpadMatches)

Specify whether the D-pad should match the trackball behavior.

If true, the d-pad moves line-by-line in folder views, list views, etc. If false, the d-pad may jump page by page or folder by folder.

This value is set by the user in the "Trackball & D-Pad" settings screen. If you change it, be sure to first call getDpadMatchesTrackball(), then restore it to that value when your app is suspended.

Since:
4.0

getDpadMatchesTrackball

public static boolean getDpadMatchesTrackball()

Determine whether the D-pad should match the trackball behavior.

This value returns the value set in setDpadMatchesTrackball(boolean) if it has been called, or the user's setting if not.

Since:
4.0