OSDN Git Service

Adding comment
authorPaul Lawrence <paullawrence@google.com>
Mon, 2 Jun 2014 15:07:29 +0000 (08:07 -0700)
committerPaul Lawrence <paullawrence@google.com>
Mon, 2 Jun 2014 16:33:13 +0000 (09:33 -0700)
To enable marquee'ing, you have to call setSelected on the relevant control.
Comment added to explain this. Also see defect 15327172 filed against
SDK documentation to properly explain this.

Change-Id: If8f70baa1b682070b312fa689b2edd77b50d2d6e

src/com/android/settings/CryptKeeper.java

index 322bda0..d24c741 100644 (file)
@@ -408,7 +408,7 @@ public class CryptKeeper extends Activity implements TextView.OnEditorActionList
 
                     final TextView status = (TextView) findViewById(R.id.owner_info);
                     status.setText(owner_info);
-                    status.setSelected(true);
+                    status.setSelected(true); // Required for marquee'ing to work
                     passwordEntryInit();
                 }
             }.execute();