package com.android.launcher3.dialog;

import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.MediaStore;
import android.util.DisplayMetrics;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.fastjson.JSON;
import com.android.launcher3.R;
import com.android.launcher3.manager.ColumnDef;
import com.android.launcher3.manager.Constants;
import com.android.launcher3.manager.LauncherManager;
import com.android.launcher3.manager.TimeModeManager;
import com.android.launcher3.model.ConfigManager;
import com.android.launcher3.model.TimeConfig;
import com.android.launcher3.util.Logger;
import com.android.launcher3.util.TimeUtils;
import com.android.launcher3.views.SwipeUpFinishLayout;

import androidx.annotation.NonNull;
import androidx.constraintlayout.widget.ConstraintLayout;

import static android.content.Context.WINDOW_SERVICE;

//public class LockScreenFloatWindow implements View.OnClickListener {
//
//    private static final String TAG = "LockScreenDialog";
//
//    private LockScreenFloatWindow(@NonNull Context context) {
//
//        this.context = context;
//        windowManager = (WindowManager) context.getSystemService(WINDOW_SERVICE);
//    }
//
//
//    public Context getContext() {
//        return context;
//    }
//
//
//    public static synchronized LockScreenFloatWindow getInstance(Context context) {
//
//        if (mInstance == null) {
//            synchronized (LockScreenFloatWindow.class) {
//                if (mInstance == null) {
//                    Logger.e(TAG, "LockScreenFloatWindow getInstance null\t" + context.toString() + "\t" + android.os.Process.myPid());
//                    return new LockScreenFloatWindow(context);
//                }
//            }
//
//        }
//        return mInstance;
//    }
//
//
//}
