private static Context mContext;
+ // TODO better place
+ private static boolean mOnlyOnDevice = false;
+
+
public void onCreate(){
super.onCreate();
MainApp.mContext = getApplicationContext();
} else {
OwnCloudClientManagerFactory.setDefaultPolicy(Policy.ALWAYS_NEW_CLIENT);
}
-
+
// initialise thumbnails cache on background thread
new ThumbnailsCacheManager.InitDiskCacheTask().execute();
public static String getLogName() {
return getAppContext().getResources().getString(R.string.log_name);
}
-
+
+ public static void showOnlyFilesOnDevice(boolean state){
+ mOnlyOnDevice = state;
+ }
+
+ public static boolean getOnlyOnDevice(){
+ return mOnlyOnDevice;
+ }
}