projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add user agent in android project
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
MainApp.java
diff --git
a/src/com/owncloud/android/MainApp.java
b/src/com/owncloud/android/MainApp.java
index
f35e098
..
67a1598
100644
(file)
--- a/
src/com/owncloud/android/MainApp.java
+++ b/
src/com/owncloud/android/MainApp.java
@@
-1,8
+1,9
@@
-/* ownCloud Android client application
+/**
+ * ownCloud Android client application
*
* @author masensio
* @author David A. Velasco
*
* @author masensio
* @author David A. Velasco
- * Copyright (C) 201
2-201
5 ownCloud Inc.
+ * Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
@@
-116,4
+117,9
@@
public class MainApp extends Application {
return getAppContext().getResources().getString(R.string.log_name);
}
return getAppContext().getResources().getString(R.string.log_name);
}
+ // user agent
+ // TODO: decide if it use account_type or another string for user_agent
+ public static String getUserAgent() {
+ return getAppContext().getResources().getString(R.string.account_type);
+ }
}
}