<string name="select_album" msgid="1557063764849434077">"አልበም ምረጥ"</string>
<string name="select_group" msgid="6744208543323307114">"ቡድን ምረጥ"</string>
<string name="set_image" msgid="2331476809308010401">"ምስል እንደ አዘጋጅ"</string>
- <!-- no translation found for set_wallpaper (8491121226190175017) -->
- <skip />
+ <string name="set_wallpaper" msgid="8491121226190175017">"ልጣፍ አዘጋጅ"</string>
<string name="wallpaper" msgid="140165383777262070">"ልጣፍ በማቀናበር ላይ...."</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"ልጣፍ"</string>
<string name="delete" msgid="2839695998251824487">"ሰርዝ"</string>
<string name="select_album" msgid="1557063764849434077">"Selecciona un àlbum"</string>
<string name="select_group" msgid="6744208543323307114">"Selecciona un grup"</string>
<string name="set_image" msgid="2331476809308010401">"Defineix la imatge com a"</string>
- <!-- no translation found for set_wallpaper (8491121226190175017) -->
- <skip />
+ <string name="set_wallpaper" msgid="8491121226190175017">"Defineix el fons de pantalla"</string>
<string name="wallpaper" msgid="140165383777262070">"S\'està establint el fons de pantalla..."</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"Fons de pantalla"</string>
<string name="delete" msgid="2839695998251824487">"Suprimeix"</string>
<plurals name="delete_selection">
<item quantity="one" msgid="6453379735401083732">"Vols supr. l\'element selecc.?"</item>
- <item quantity="other" msgid="5874316486520635333">"Vols supr. l\'element selecc.?"</item>
+ <item quantity="other" msgid="5874316486520635333">"Vols supr. els elements sel.?"</item>
</plurals>
<string name="confirm" msgid="8646870096527848520">"Confirma"</string>
<string name="cancel" msgid="3637516880917356226">"Cancel·la"</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"Tapet"</string>
<string name="delete" msgid="2839695998251824487">"Slet"</string>
<plurals name="delete_selection">
- <item quantity="one" msgid="6453379735401083732">"Vil du slette valgte element?"</item>
+ <item quantity="one" msgid="6453379735401083732">"Vil du slette det valgte element?"</item>
<item quantity="other" msgid="5874316486520635333">"Vil du slette valgte elementer?"</item>
</plurals>
<string name="confirm" msgid="8646870096527848520">"Bekræft"</string>
<string name="select_album" msgid="1557063764849434077">"Επιλογή λευκώματος"</string>
<string name="select_group" msgid="6744208543323307114">"Επιλογή ομάδας"</string>
<string name="set_image" msgid="2331476809308010401">"Ορισμός εικόνας ως"</string>
- <!-- no translation found for set_wallpaper (8491121226190175017) -->
- <skip />
+ <string name="set_wallpaper" msgid="8491121226190175017">"Ορισμός ταπετσαρίας"</string>
<string name="wallpaper" msgid="140165383777262070">"Ορισμός ταπετσαρίας..."</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"Ταπετσαρία"</string>
<string name="delete" msgid="2839695998251824487">"Διαγραφή"</string>
<string name="select_album" msgid="1557063764849434077">"Select album"</string>
<string name="select_group" msgid="6744208543323307114">"Select group"</string>
<string name="set_image" msgid="2331476809308010401">"Set picture as"</string>
- <!-- no translation found for set_wallpaper (8491121226190175017) -->
- <skip />
+ <string name="set_wallpaper" msgid="8491121226190175017">"Set wallpaper"</string>
<string name="wallpaper" msgid="140165383777262070">"Setting wallpaper..."</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"Wallpaper"</string>
<string name="delete" msgid="2839695998251824487">"Delete"</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"Papel tapiz"</string>
<string name="delete" msgid="2839695998251824487">"Eliminar"</string>
<plurals name="delete_selection">
- <item quantity="one" msgid="6453379735401083732">"¿Eliminar elemento selec.?"</item>
- <item quantity="other" msgid="5874316486520635333">"¿Eliminar elementos selecs.?"</item>
+ <item quantity="one" msgid="6453379735401083732">"¿Eliminar elemento?"</item>
+ <item quantity="other" msgid="5874316486520635333">"¿Eliminar elementos?"</item>
</plurals>
<string name="confirm" msgid="8646870096527848520">"Confirmar"</string>
<string name="cancel" msgid="3637516880917356226">"Cancelar"</string>
<string name="select_album" msgid="1557063764849434077">"Seleccionar álbum"</string>
<string name="select_group" msgid="6744208543323307114">"Seleccionar grupo"</string>
<string name="set_image" msgid="2331476809308010401">"Establecer imagen como"</string>
- <!-- no translation found for set_wallpaper (8491121226190175017) -->
- <skip />
+ <string name="set_wallpaper" msgid="8491121226190175017">"Establecer fondo de pantalla"</string>
<string name="wallpaper" msgid="140165383777262070">"Estableciendo fondo de pantalla..."</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"Fondo de pantalla"</string>
<string name="delete" msgid="2839695998251824487">"Borrar"</string>
<string name="delete" msgid="2839695998251824487">"Supprimer"</string>
<plurals name="delete_selection">
<item quantity="one" msgid="6453379735401083732">"Supprimer élément sélectionné ?"</item>
- <item quantity="other" msgid="5874316486520635333">"Supprimer éléments sélectionnés ?"</item>
+ <item quantity="other" msgid="5874316486520635333">"Suppr. éléments sélectionnés ?"</item>
</plurals>
<string name="confirm" msgid="8646870096527848520">"Confirmer"</string>
<string name="cancel" msgid="3637516880917356226">"Annuler"</string>
<string name="select_album" msgid="1557063764849434077">"בחר אלבום"</string>
<string name="select_group" msgid="6744208543323307114">"בחר קבוצה"</string>
<string name="set_image" msgid="2331476809308010401">"הגדר תמונה בתור"</string>
- <!-- no translation found for set_wallpaper (8491121226190175017) -->
- <skip />
+ <string name="set_wallpaper" msgid="8491121226190175017">"הגדר טפט"</string>
<string name="wallpaper" msgid="140165383777262070">"מגדיר טפט..."</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"טפט"</string>
<string name="delete" msgid="2839695998251824487">"מחק"</string>
<string name="select_album" msgid="1557063764849434077">"Chagua albamu"</string>
<string name="select_group" msgid="6744208543323307114">"Chagua kikundi"</string>
<string name="set_image" msgid="2331476809308010401">"Weka picha kama"</string>
- <!-- no translation found for set_wallpaper (8491121226190175017) -->
- <skip />
+ <string name="set_wallpaper" msgid="8491121226190175017">"Weka mandhari"</string>
<string name="wallpaper" msgid="140165383777262070">"Inaweka karatasi ya ukuta..."</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"Mandhari"</string>
<string name="delete" msgid="2839695998251824487">"Futa"</string>
<string name="select_album" msgid="1557063764849434077">"เลือกอัลบั้ม"</string>
<string name="select_group" msgid="6744208543323307114">"เลือกกลุ่ม"</string>
<string name="set_image" msgid="2331476809308010401">"ตั้งค่าภาพเป็น"</string>
- <!-- no translation found for set_wallpaper (8491121226190175017) -->
- <skip />
+ <string name="set_wallpaper" msgid="8491121226190175017">"ตั้งค่าวอลเปเปอร์"</string>
<string name="wallpaper" msgid="140165383777262070">"กำลังตั้งค่าวอลเปเปอร์..."</string>
<string name="camera_setas_wallpaper" msgid="797463183863414289">"วอลเปเปอร์"</string>
<string name="delete" msgid="2839695998251824487">"ลบ"</string>
abstract public class ActivityState {
protected static final int FLAG_HIDE_ACTION_BAR = 1;
protected static final int FLAG_HIDE_STATUS_BAR = 2;
- protected static final int FLAG_SCREEN_ON = 4;
+ protected static final int FLAG_SCREEN_ON_WHEN_PLUGGED = 4;
+ protected static final int FLAG_SCREEN_ON_ALWAYS = 8;
private static final int SCREEN_ON_FLAGS = (
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
void setScreenOnFlags() {
final Window win = ((Activity) mActivity).getWindow();
final WindowManager.LayoutParams params = win.getAttributes();
- if (mPlugged && 0 != (mFlags & FLAG_SCREEN_ON)) {
+ if ((0 != (mFlags & FLAG_SCREEN_ON_ALWAYS)) ||
+ (mPlugged && 0 != (mFlags & FLAG_SCREEN_ON_WHEN_PLUGGED))) {
params.flags |= SCREEN_ON_FLAGS;
} else {
params.flags &= ~SCREEN_ON_FLAGS;
}
protected void onPause() {
- if (0 != (mFlags & FLAG_SCREEN_ON)) {
+ if (0 != (mFlags & FLAG_SCREEN_ON_WHEN_PLUGGED)) {
((Activity) mActivity).unregisterReceiver(mPowerIntentReceiver);
}
}
onStateResult(entry.requestCode, entry.resultCode, entry.resultData);
}
- if (0 != (mFlags & FLAG_SCREEN_ON)) {
+ if (0 != (mFlags & FLAG_SCREEN_ON_WHEN_PLUGGED)) {
// we need to know whether the device is plugged in to do this correctly
final IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_BATTERY_CHANGED);
public final class Gallery extends AbstractGalleryActivity implements OnCancelListener {
public static final String EXTRA_SLIDESHOW = "slideshow";
+ public static final String EXTRA_DREAM = "dream";
public static final String EXTRA_CROP = "crop";
public static final String ACTION_REVIEW = "com.android.camera.action.REVIEW";
data.putString(SlideshowPage.KEY_SET_PATH, path.toString());
data.putBoolean(SlideshowPage.KEY_RANDOM_ORDER, true);
data.putBoolean(SlideshowPage.KEY_REPEAT, true);
+ if (intent.getBooleanExtra(EXTRA_DREAM, false)) {
+ data.putBoolean(SlideshowPage.KEY_DREAM, true);
+ }
getStateManager().startState(SlideshowPage.class, data);
} else {
Bundle data = new Bundle();
// Uri.fromFile(Environment.getExternalStoragePublicDirectory(
// Environment.DIRECTORY_PICTURES)))
.putExtra(Gallery.EXTRA_SLIDESHOW, true)
+ .putExtra(Gallery.EXTRA_DREAM, true)
.setFlags(getIntent().getFlags());
startActivity(i);
finish();
public static final String KEY_PHOTO_INDEX = "photo-index";
public static final String KEY_RANDOM_ORDER = "random-order";
public static final String KEY_REPEAT = "repeat";
+ public static final String KEY_DREAM = "dream";
private static final long SLIDESHOW_DELAY = 3000; // 3 seconds
@Override
public void onCreate(Bundle data, Bundle restoreState) {
- mFlags |= (FLAG_HIDE_ACTION_BAR | FLAG_HIDE_STATUS_BAR | FLAG_SCREEN_ON);
+ mFlags |= (FLAG_HIDE_ACTION_BAR | FLAG_HIDE_STATUS_BAR);
+ if (data.getBoolean(KEY_DREAM)) {
+ // Dream screensaver only keeps screen on for plugged devices.
+ mFlags |= FLAG_SCREEN_ON_WHEN_PLUGGED;
+ } else {
+ // User-initiated slideshow would always keep screen on.
+ mFlags |= FLAG_SCREEN_ON_ALWAYS;
+ }
mHandler = new SynchronizedHandler(mActivity.getGLRoot()) {
@Override