File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 167167 android : name =" .BeanBag"
168168 android : exported =" true"
169169 android : label =" BeanBag"
170- android : icon =" @drawable/redbeandroid "
170+ android : icon =" @drawable/redbean2 "
171171 android : theme =" @android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"
172172 android : hardwareAccelerated =" true"
173173 android : launchMode =" singleInstance"
184184 <service
185185 android : name =" .BeanBagDream"
186186 android : exported =" true"
187- android : label =" Beans in space" >
187+ android : label =" @string/jelly_bean_dream_name"
188+ android : enabled =" false"
189+ >
188190 <intent-filter >
189191 <action android : name =" android.intent.action.MAIN" />
190192 <category android : name =" android.intent.category.DEFAULT" />
Original file line number Diff line number Diff line change 397397
398398 <!-- Description of the button in the phone-style notification panel that controls auto-rotation, when auto-rotation is off. [CHAR LIMIT=NONE] -->
399399 <string name =" accessibility_rotation_lock_on_portrait" >Screen is locked in portrait orientation.</string >
400+
401+ <!-- Name of the Jelly Bean platlogo screensaver -->
402+ <string name =" jelly_bean_dream_name" >BeanFlinger</string >
400403</resources >
Original file line number Diff line number Diff line change 2424import android .content .ComponentName ;
2525import android .content .Context ;
2626import android .content .Intent ;
27+ import android .content .pm .PackageManager ;
2728import android .graphics .drawable .AnimationDrawable ;
2829import android .graphics .drawable .BitmapDrawable ;
2930import android .graphics .Bitmap ;
4041import android .graphics .RectF ;
4142import android .os .Handler ;
4243import android .os .SystemClock ;
44+ import android .provider .Settings ;
4345import android .util .AttributeSet ;
4446import android .util .DisplayMetrics ;
4547import android .util .Pair ;
@@ -402,6 +404,11 @@ public void onDraw(Canvas c) {
402404 public void onStart () {
403405 super .onStart ();
404406
407+ // ACHIEVEMENT UNLOCKED
408+ PackageManager pm = getPackageManager ();
409+ pm .setComponentEnabledSetting (new ComponentName (this , BeanBagDream .class ),
410+ PackageManager .COMPONENT_ENABLED_STATE_ENABLED , 0 );
411+
405412 getWindow ().addFlags (
406413 WindowManager .LayoutParams .FLAG_ALLOW_LOCK_WHILE_SCREEN_ON
407414 | WindowManager .LayoutParams .FLAG_SHOW_WHEN_LOCKED
You can’t perform that action at this time.
0 commit comments