优化
This commit is contained in:
@@ -4,6 +4,7 @@ import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.text.TextUtils;
|
||||
import android.view.Gravity;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
@@ -32,6 +33,9 @@ public class ToastUtils {
|
||||
* @param text the text
|
||||
*/
|
||||
public static void showToast(String text) {
|
||||
if (TextUtils.isEmpty(text)) {
|
||||
return;
|
||||
}
|
||||
runOnMainThread(()->{
|
||||
Context context = App.getContext();
|
||||
if (toast == null) {
|
||||
|
||||
@@ -89,7 +89,8 @@ public class ConfigUtil {
|
||||
*/
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "1280x720";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "1080x720";
|
||||
private static final String DEFAULT_PREVIEW_SIZE = "720x1080";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "720x1080";
|
||||
private static final String DEFAULT_PREVIEW_SIZE = "720x1280";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "608x456";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "1024x768";
|
||||
// private static final String DEFAULT_PREVIEW_SIZE = "800x600";
|
||||
|
||||
Reference in New Issue
Block a user