Messaging: Remove GServices
We don't have an actual implementation returning anything but the defaults, so apply the defaults directly anywhere we need them Change-Id: Ic651b4b13977799f2f4d2c702c430798fbff77f8
This commit is contained in:
@@ -42,9 +42,6 @@ public class GifTranscoder {
|
||||
}
|
||||
|
||||
public static boolean transcode(Context context, String filePath, String outFilePath) {
|
||||
if (!isEnabled()) {
|
||||
return false;
|
||||
}
|
||||
final long inputSize = new File(filePath).length();
|
||||
Stopwatch stopwatch = Stopwatch.createStarted();
|
||||
final boolean success = transcodeInternal(filePath, outFilePath);
|
||||
@@ -77,19 +74,6 @@ public class GifTranscoder {
|
||||
}
|
||||
|
||||
public static boolean canBeTranscoded(int width, int height) {
|
||||
if (!isEnabled()) {
|
||||
return false;
|
||||
}
|
||||
return width >= MIN_WIDTH && height >= MIN_HEIGHT;
|
||||
}
|
||||
|
||||
private static boolean isEnabled() {
|
||||
final boolean enabled = BugleGservices.get().getBoolean(
|
||||
BugleGservicesKeys.ENABLE_GIF_TRANSCODING,
|
||||
BugleGservicesKeys.ENABLE_GIF_TRANSCODING_DEFAULT);
|
||||
if (!enabled) {
|
||||
LogUtil.w(TAG, "GIF transcoding is disabled");
|
||||
}
|
||||
return enabled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user