/[projects]/android/Side9/src/dk/thoerup/side9/Side9WidgetProvider.java
ViewVC logotype

Diff of /android/Side9/src/dk/thoerup/side9/Side9WidgetProvider.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 856 by torben, Wed Jun 16 07:40:59 2010 UTC revision 857 by torben, Wed Jun 16 07:51:40 2010 UTC
# Line 63  public class Side9WidgetProvider extends Line 63  public class Side9WidgetProvider extends
63                                  views.setImageViewResource(R.id.side9picture, R.drawable.side9logo);                                  views.setImageViewResource(R.id.side9picture, R.drawable.side9logo);
64                          }                          }
65                                                    
66                          boolean showcaption = context.getSharedPreferences(Side9WidgetProvider.TAG, Context.MODE_PRIVATE).getBoolean("showcaption", false);                          boolean showcaption = context.
67                                            getSharedPreferences(Side9WidgetProvider.TAG, Context.MODE_PRIVATE).
68                                            getBoolean(Side9Config.PREFS_SHOWCAPTION, false);
69                                                    
70                          if (showcaption == true) {                          if (showcaption == true) {
71                                  views.setTextViewText(R.id.caption, " " + usedData.caption + " ");                                  views.setTextViewText(R.id.caption, " " + usedData.caption + " ");
# Line 139  public class Side9WidgetProvider extends Line 141  public class Side9WidgetProvider extends
141          Bitmap getImageData(Context context, Side9Data data) throws IOException {                Bitmap getImageData(Context context, Side9Data data) throws IOException {      
142                                    
143                  SharedPreferences prefs = context.getSharedPreferences(TAG, Context.MODE_PRIVATE);                  SharedPreferences prefs = context.getSharedPreferences(TAG, Context.MODE_PRIVATE);
144                  boolean saveImage = prefs.getBoolean("saveimage", false);                  boolean saveImage = prefs.getBoolean(Side9Config.PREFS_SAVEIMAGE, false);
145                                    
146                  final String savepath = Environment.getExternalStorageDirectory() + "/Side9";                  final String savepath = Environment.getExternalStorageDirectory() + "/Side9";
147                                    

Legend:
Removed from v.856  
changed lines
  Added in v.857

  ViewVC Help
Powered by ViewVC 1.1.20