aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2013-11-03 22:50:28 +0100
committerJorge Ruesga <jorge@ruesga.com>2013-11-03 22:50:28 +0100
commitdb54e3cec597fc5c7667a84e5ff6961e4f9a46fe (patch)
treea7555468d43d3c1395db6a511cd7a9f63f7ad3e0
parent90be646abb5afbc5a70aa925111df169993e8ced (diff)
downloadandroid_packages_wallpapers_PhotoPhase-db54e3cec597fc5c7667a84e5ff6961e4f9a46fe.tar.gz
android_packages_wallpapers_PhotoPhase-db54e3cec597fc5c7667a84e5ff6961e4f9a46fe.tar.bz2
android_packages_wallpapers_PhotoPhase-db54e3cec597fc5c7667a84e5ff6961e4f9a46fe.zip
Add missed files
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
-rw-r--r--res/raw-es/changelog27
-rw-r--r--res/raw/changelog27
-rw-r--r--src/org/cyanogenmod/wallpapers/photophase/preferences/ChangeLogActivity.java108
3 files changed, 162 insertions, 0 deletions
diff --git a/res/raw-es/changelog b/res/raw-es/changelog
new file mode 100644
index 0000000..e3d2e23
--- /dev/null
+++ b/res/raw-es/changelog
@@ -0,0 +1,27 @@
+v1.0.4
+----------------------------
+- Característica: Actividad de selección de álbumes renovada (mejor disposición, efectos y mejoras de rendimiento)
+- Característica: Disposiciones aleatorias
+- Característica: Plantillas predefinidas
+- Característica: Añadido registro de cambios
+- Corrección: Corregida la actividad de selección de álbumes cuando existen muchos álbumes
+
+v1.0.3
+----------------------------
+- Corregido el problema que muestra la pantalla en blanco en la actividad de álbumes
+- Mejorada la respuesta en la actividad de álbumes
+
+v1.0.2
+----------------------------
+- Permite mover la aplicación a la tarjeta SD externa (no todos los dispositivos soportan esta característica. Si tu fondo de pantalla se resetea al de defecto tras un reinicio del dispositivo, entonces tu dispositivo no soporta esta característica y necesita ser instalado en la tarjeta SD interna)
+- Corregido un problema que impide el arranque de aplicación en la versión 4.0.3 de Android (gracias por los informes de errores)
+
+v1.0.1
+----------------------------
+- Ajustes de intervalo de transiciones: Ahora acepta valores desde 0 a 60 segundos (0 significa sin transiciones)
+- Mejora en los tiempos de búsqueda de nuevas imágenes
+- Corregidos algunos errores (gracias por los informes de errores)
+
+v1.0.0
+----------------------------
+- Versión inicial \ No newline at end of file
diff --git a/res/raw/changelog b/res/raw/changelog
new file mode 100644
index 0000000..7024753
--- /dev/null
+++ b/res/raw/changelog
@@ -0,0 +1,27 @@
+v1.0.4
+----------------------------
+- Feature: Album selection activity reworked (better layout, effects and performance improvements)
+- Feature: Random dispositions
+- Feature: System-defined templates
+- Feature: Added change log
+- Bugs: Fixed album selection activity when there are many albums
+
+v1.0.3
+----------------------------
+- Fixed blank white screen on albums activity
+- Improved responsiveness of albums activity
+
+v1.0.2
+----------------------------
+- Allow move the app to the external sdcard (not all the devices support this feature. If your wallpaper is reset to default after a device reboot, then your device don't support it and need to be installed in the internal sdcard)
+- Fixed an issue that prevents to start the app in the 4.0.3 version of Android (thanks for the bug reports)
+
+v1.0.1
+----------------------------
+- Transitions interval settings: Now accept values from 0 to 60 seconds (0 means no transtions at all)
+- Improved the times needed to discover new media data
+- Fixed some bugs (thanks for the bug reports)
+
+v1.0.0
+----------------------------
+- Initial release \ No newline at end of file
diff --git a/src/org/cyanogenmod/wallpapers/photophase/preferences/ChangeLogActivity.java b/src/org/cyanogenmod/wallpapers/photophase/preferences/ChangeLogActivity.java
new file mode 100644
index 0000000..a80ffc0
--- /dev/null
+++ b/src/org/cyanogenmod/wallpapers/photophase/preferences/ChangeLogActivity.java
@@ -0,0 +1,108 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.cyanogenmod.wallpapers.photophase.preferences;
+
+import android.app.Activity;
+import android.app.AlertDialog;
+import android.content.DialogInterface;
+import android.content.DialogInterface.OnCancelListener;
+import android.content.DialogInterface.OnDismissListener;
+import android.os.Bundle;
+import android.util.Log;
+
+import org.cyanogenmod.wallpapers.photophase.R;
+
+import java.io.InputStream;
+
+/**
+ * The activity for show the changelog of the application
+ */
+public class ChangeLogActivity extends Activity implements OnCancelListener, OnDismissListener {
+
+ private static final String TAG = "ChangeLogActivity"; //$NON-NLS-1$
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected void onCreate(Bundle state) {
+ //Save state
+ super.onCreate(state);
+ init();
+ }
+
+ /**
+ * Initialize the activity. This method handles the passed intent, opens
+ * the appropriate activity and ends.
+ */
+ private void init() {
+ InputStream is = getApplicationContext().getResources().openRawResource(R.raw.changelog);
+ if (is == null) {
+ Log.e(TAG, "Changelog file not exists"); //$NON-NLS-1$
+ finish();
+ return;
+ }
+
+ try {
+ // Read the changelog
+ StringBuilder sb = new StringBuilder();
+ int read = 0;
+ byte[] data = new byte[512];
+ while ((read = is.read(data, 0, 512)) != -1) {
+ sb.append(new String(data, 0, read));
+ }
+
+ //Create the alert dialog
+ AlertDialog.Builder builder = new AlertDialog.Builder(this);
+ builder.setTitle(R.string.changelog_title);
+ builder.setMessage(sb);
+ builder.setPositiveButton(getString(R.string.mnu_ok), null);
+ builder.setOnDismissListener(this);
+ builder.setOnCancelListener(this);
+ AlertDialog dialog = builder.create();
+ dialog.show();
+
+ } catch (Exception e) {
+ Log.e(TAG, "Failed to read changelog file", e); //$NON-NLS-1$
+ finish();
+
+ } finally {
+ try {
+ is.close();
+ } catch (Exception e) {/**NON BLOCK**/}
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void onDismiss(DialogInterface dialog) {
+ // We have to finish here; this activity is only a wrapper
+ finish();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void onCancel(DialogInterface dialog) {
+ // We have to finish here; this activity is only a wrapper
+ finish();
+ }
+
+}