Skip to content

Commit

Permalink
renamed classes
Browse files Browse the repository at this point in the history
  • Loading branch information
steren committed May 7, 2011
1 parent ebc4e48 commit 775ab41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<service
android:label="@string/wallpaper_cube2"
android:name="CubeWallpaper2"
android:name="ColorClockWallpaper"
android:permission="android.permission.BIND_WALLPAPER">
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" />
Expand All @@ -37,7 +37,7 @@
</service>
<activity
android:label="@string/cube2_settings"
android:name="CubeWallpaper2Settings"
android:name="ColorClockWallpaperSettings"
android:theme="@android:style/Theme.Light.WallpaperSettings"
android:exported="true">
</activity>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2009 The Android Open Source Project
* Copyright (C) 2010 Steren Giannini steren.giannini@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,7 +29,7 @@
import android.view.MotionEvent;
import android.view.SurfaceHolder;

public class CubeWallpaper2 extends WallpaperService {
public class ColorClockWallpaper extends WallpaperService {

public static final String SHARED_PREFS_NAME="cube2settings";

Expand Down Expand Up @@ -95,7 +96,7 @@ public void run() {

mStartTime = SystemClock.elapsedRealtime();

mPrefs = CubeWallpaper2.this.getSharedPreferences(SHARED_PREFS_NAME, 0);
mPrefs = ColorClockWallpaper.this.getSharedPreferences(SHARED_PREFS_NAME, 0);
mPrefs.registerOnSharedPreferenceChangeListener(this);
onSharedPreferenceChanged(mPrefs, null);
}
Expand Down Expand Up @@ -243,7 +244,7 @@ void drawColorbackground(Canvas c) {
mTime.normalize(false);

float[] color = new float[3];
color[0] = mTime.minute * 360.0f / 60.0f ;
color[0] = mTime.second * 360.0f / 60.0f ;
color[1] = (float) 0.8;
color[2] = (float) 0.8;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@

package fr.steren.colorclock;

import fr.steren.colorclock.CubeWallpaper2;
import fr.steren.colorclock.ColorClockWallpaper;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;

public class CubeWallpaper2Settings extends PreferenceActivity
public class ColorClockWallpaperSettings extends PreferenceActivity
implements SharedPreferences.OnSharedPreferenceChangeListener {

@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
getPreferenceManager().setSharedPreferencesName(
CubeWallpaper2.SHARED_PREFS_NAME);
ColorClockWallpaper.SHARED_PREFS_NAME);
addPreferencesFromResource(R.xml.cube2_settings);
getPreferenceManager().getSharedPreferences().registerOnSharedPreferenceChangeListener(
this);
Expand Down

0 comments on commit 775ab41

Please sign in to comment.