aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/persistance
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-11-23 21:00:55 +0100
committerChristian Schneppe <christian@pix-art.de>2017-11-23 21:03:38 +0100
commit25056d10a6648aedd0d77fccf80a33adf65d0f8b (patch)
treec84ca2b71fc474850af1fbfc22e4daf9236a5838 /src/main/java/de/pixart/messenger/persistance
parenta42f6ec1caad233ec9b878ebfa7ba5070ffd67ef (diff)
code cleanup
Diffstat (limited to 'src/main/java/de/pixart/messenger/persistance')
-rw-r--r--src/main/java/de/pixart/messenger/persistance/FileBackend.java6
-rw-r--r--src/main/java/de/pixart/messenger/persistance/OnPhoneContactsMerged.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/persistance/FileBackend.java b/src/main/java/de/pixart/messenger/persistance/FileBackend.java
index 0db865236..ce8219f6e 100644
--- a/src/main/java/de/pixart/messenger/persistance/FileBackend.java
+++ b/src/main/java/de/pixart/messenger/persistance/FileBackend.java
@@ -542,7 +542,7 @@ public class FileBackend {
}
public Uri getTakePhotoUri() {
- File file = new File(getTakeFromCameraPath() + "IMG_" + this.fileDateFormat.format(new Date()) + ".jpg");
+ File file = new File(getTakeFromCameraPath() + "IMG_" + fileDateFormat.format(new Date()) + ".jpg");
file.getParentFile().mkdirs();
return getUriForFile(mXmppConnectionService, file);
}
@@ -574,7 +574,7 @@ public class FileBackend {
}
public Uri getTakeVideoUri() {
- File file = new File(getTakeFromCameraPath() + "VID_" + this.fileDateFormat.format(new Date()) + ".mp4");
+ File file = new File(getTakeFromCameraPath() + "VID_" + fileDateFormat.format(new Date()) + ".mp4");
file.getParentFile().mkdirs();
return getUriForFile(mXmppConnectionService, file);
}
@@ -885,7 +885,7 @@ public class FileBackend {
pi.applicationInfo.publicSourceDir = file.toString();
//icon = pi.applicationInfo.loadIcon(pm);
final String AppName = (String) pi.applicationInfo.loadLabel(pm);
- final String AppVersion = (String) pi.versionName;
+ final String AppVersion = pi.versionName;
Log.d(Config.LOGTAG, "APK name: " + AppName);
APKName = " (" + AppName + " " + AppVersion + ")";
try {
diff --git a/src/main/java/de/pixart/messenger/persistance/OnPhoneContactsMerged.java b/src/main/java/de/pixart/messenger/persistance/OnPhoneContactsMerged.java
index d5253f227..6c7b0e52c 100644
--- a/src/main/java/de/pixart/messenger/persistance/OnPhoneContactsMerged.java
+++ b/src/main/java/de/pixart/messenger/persistance/OnPhoneContactsMerged.java
@@ -1,5 +1,5 @@
package de.pixart.messenger.persistance;
public interface OnPhoneContactsMerged {
- public void phoneContactsMerged();
+ void phoneContactsMerged();
}