.class public Lcom/moji/mjweather/aqi/AqiCameraActivity;
.super Lcom/moji/base/MJActivity;
.source "AqiCameraActivity.java"

# interfaces
.implements Lcom/moji/location/MJLocationListener;


# static fields
.field private static final a:Ljava/lang/String;


# instance fields
.field private b:Lcom/moji/location/MJLocationManager;

.field private c:Ljava/lang/String;

.field private i:Ljava/lang/String;

.field private j:Ljava/lang/String;

.field private k:Ljava/lang/String;

.field private l:Ljava/lang/String;

.field private m:D

.field private n:D


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string v0, "aqi_afd.jpg"

    .line 66
    invoke-static {v0}, Lcom/moji/tool/FilePathUtil;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->a:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .line 62
    invoke-direct {p0}, Lcom/moji/base/MJActivity;-><init>()V

    return-void
.end method

.method static synthetic a()Ljava/lang/String;
    .locals 1

    .line 62
    sget-object v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->a:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic a(Lcom/moji/mjweather/aqi/AqiCameraActivity;Ljava/lang/String;)V
    .locals 0

    .line 62
    invoke-direct {p0, p1}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->c(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/aqi/AqiCameraActivity;Ljava/lang/String;II)V
    .locals 0

    .line 62
    invoke-direct {p0, p1, p2, p3}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->a(Ljava/lang/String;II)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3

    .line 126
    invoke-static {}, Lcom/moji/tool/thread/MJThreadManager;->a()Lcom/moji/tool/thread/MJThreadManager;

    move-result-object v0

    new-instance v1, Lcom/moji/mjweather/aqi/AqiCameraActivity$1;

    sget-object v2, Lcom/moji/tool/thread/ThreadPriority;->BACKGROUND:Lcom/moji/tool/thread/ThreadPriority;

    invoke-direct {v1, p0, v2, p1}, Lcom/moji/mjweather/aqi/AqiCameraActivity$1;-><init>(Lcom/moji/mjweather/aqi/AqiCameraActivity;Lcom/moji/tool/thread/ThreadPriority;Ljava/lang/String;)V

    sget-object p1, Lcom/moji/tool/thread/ThreadType;->NORMAL_THREAD:Lcom/moji/tool/thread/ThreadType;

    invoke-virtual {v0, v1, p1}, Lcom/moji/tool/thread/MJThreadManager;->a(Lcom/moji/tool/thread/wrapper/MJRunnable;Lcom/moji/tool/thread/ThreadType;)V

    return-void
.end method

.method private a(Ljava/lang/String;II)V
    .locals 18

    move-object/from16 v0, p0

    .line 197
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 198
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->j()I

    move-result v1

    .line 200
    new-instance v3, Lcom/moji/http/snsforum/entity/NewPictureResult;

    invoke-direct {v3}, Lcom/moji/http/snsforum/entity/NewPictureResult;-><init>()V

    .line 201
    iget-wide v4, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->n:D

    iput-wide v4, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->longitude:D

    .line 202
    iget-wide v4, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->m:D

    iput-wide v4, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->latitude:D

    .line 203
    sget-object v4, Landroid/os/Build;->DEVICE:Ljava/lang/String;

    iput-object v4, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->device:Ljava/lang/String;

    move-object/from16 v4, p1

    .line 204
    iput-object v4, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->path:Ljava/lang/String;

    int-to-long v4, v1

    .line 205
    iput-wide v4, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->city_id:J

    const-string v1, "1"

    .line 206
    iput-object v1, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->type:Ljava/lang/String;

    .line 207
    iget-object v1, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->c:Ljava/lang/String;

    iput-object v1, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->province:Ljava/lang/String;

    .line 208
    iget-object v1, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->i:Ljava/lang/String;

    iput-object v1, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->city:Ljava/lang/String;

    .line 209
    iget-object v1, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->j:Ljava/lang/String;

    iput-object v1, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->district:Ljava/lang/String;

    .line 210
    iget-object v1, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->k:Ljava/lang/String;

    iput-object v1, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->street:Ljava/lang/String;

    .line 211
    iget-object v1, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->l:Ljava/lang/String;

    iput-object v1, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->location:Ljava/lang/String;

    move/from16 v1, p2

    .line 212
    iput v1, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->width:I

    move/from16 v1, p3

    .line 213
    iput v1, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->height:I

    .line 214
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    iput-wide v6, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->take_time:J

    const/4 v1, 0x1

    .line 215
    iput v1, v3, Lcom/moji/http/snsforum/entity/NewPictureResult;->picture_folder:I

    .line 216
    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 218
    new-instance v15, Lcom/moji/http/snsforum/FeedbackPictureRequest;

    iget-wide v7, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->m:D

    iget-wide v9, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->n:D

    iget-object v11, v0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->i:Ljava/lang/String;

    const-wide/16 v12, 0x0

    const/4 v14, 0x0

    const/16 v16, 0x0

    const/16 v17, 0x0

    move-object v1, v15

    move-wide v3, v4

    move-wide v5, v12

    move-object v12, v14

    move/from16 v13, v16

    move/from16 v14, v17

    invoke-direct/range {v1 .. v14}, Lcom/moji/http/snsforum/FeedbackPictureRequest;-><init>(Ljava/util/List;JJDDLjava/lang/String;Ljava/lang/String;II)V

    .line 219
    new-instance v1, Lcom/moji/mjweather/aqi/AqiCameraActivity$2;

    invoke-direct {v1, v0}, Lcom/moji/mjweather/aqi/AqiCameraActivity$2;-><init>(Lcom/moji/mjweather/aqi/AqiCameraActivity;)V

    invoke-virtual {v15, v1}, Lcom/moji/http/snsforum/FeedbackPictureRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V

    return-void
.end method

.method static synthetic b(Lcom/moji/mjweather/aqi/AqiCameraActivity;Ljava/lang/String;)V
    .locals 0

    .line 62
    invoke-direct {p0, p1}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private b(Ljava/lang/String;)V
    .locals 2

    .line 263
    new-instance v0, Lcom/moji/mjweather/aqi/AqiCameraActivity$3;

    sget-object v1, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;

    invoke-direct {v0, p0, v1, p1}, Lcom/moji/mjweather/aqi/AqiCameraActivity$3;-><init>(Lcom/moji/mjweather/aqi/AqiCameraActivity;Lcom/moji/tool/thread/ThreadPriority;Ljava/lang/String;)V

    sget-object p1, Lcom/moji/tool/thread/ThreadType;->NORMAL_THREAD:Lcom/moji/tool/thread/ThreadType;

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Void;

    .line 297
    invoke-virtual {v0, p1, v1}, Lcom/moji/mjweather/aqi/AqiCameraActivity$3;->a(Lcom/moji/tool/thread/ThreadType;[Ljava/lang/Object;)Lcom/moji/tool/thread/task/MJAsyncTask;

    return-void
.end method

.method private c(Ljava/lang/String;)V
    .locals 5

    .line 334
    :try_start_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 335
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-lez v4, :cond_0

    .line 336
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "PREVIEW_INFO"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/aqi/entity/AqiPreviewInfo;

    const/16 v1, 0x65

    .line 337
    invoke-static {p0, v1, p1, v0}, Lcom/moji/mjweather/aqi/AqiCameraSharePresenter;->a(Landroid/app/Activity;ILjava/lang/String;Lcom/moji/mjweather/aqi/entity/AqiPreviewInfo;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    const-string v0, "AqiCameraActivity"

    .line 340
    invoke-static {v0, p1}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_0
    :goto_0
    return-void
.end method

.method public static gotoAqiCameraActivity(Landroid/app/Activity;Lcom/moji/mjweather/aqi/entity/AqiPreviewInfo;)V
    .locals 2

    .line 77
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/moji/mjweather/aqi/AqiCameraActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "PREVIEW_INFO"

    .line 78
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 79
    invoke-virtual {p0, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    const p1, 0x7f010031

    const v0, 0x7f010015

    .line 80
    invoke-virtual {p0, p1, v0}, Landroid/app/Activity;->overridePendingTransition(II)V

    return-void
.end method

.method public static readPictureDegree(Ljava/lang/String;)I
    .locals 3

    const/4 v0, 0x0

    .line 304
    :try_start_0
    new-instance v1, Landroid/media/ExifInterface;

    invoke-direct {v1, p0}, Landroid/media/ExifInterface;-><init>(Ljava/lang/String;)V

    const-string p0, "Orientation"

    const/4 v2, 0x1

    .line 305
    invoke-virtual {v1, p0, v2}, Landroid/media/ExifInterface;->getAttributeInt(Ljava/lang/String;I)I

    move-result p0
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v1, 0x3

    if-eq p0, v1, :cond_2

    const/4 v1, 0x6

    if-eq p0, v1, :cond_1

    const/16 v1, 0x8

    if-eq p0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/16 p0, 0x10e

    const/16 v0, 0x10e

    goto :goto_0

    :cond_1
    const/16 p0, 0x5a

    const/16 v0, 0x5a

    goto :goto_0

    :cond_2
    const/16 p0, 0xb4

    const/16 v0, 0xb4

    goto :goto_0

    :catch_0
    move-exception p0

    const-string v1, "AqiCameraActivity"

    .line 318
    invoke-static {v1, p0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_0
    return v0
.end method

.method public static toturn(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
    .locals 7

    .line 324
    new-instance v5, Landroid/graphics/Matrix;

    invoke-direct {v5}, Landroid/graphics/Matrix;-><init>()V

    const/high16 v0, 0x42b40000    # 90.0f

    .line 325
    invoke-virtual {v5, v0}, Landroid/graphics/Matrix;->postRotate(F)Z

    .line 326
    invoke-virtual {p0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    .line 327
    invoke-virtual {p0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v4

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v6, 0x1

    move-object v0, p0

    .line 328
    invoke-static/range {v0 .. v6}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;

    move-result-object p0

    return-object p0
.end method


# virtual methods
.method public cameraTask()V
    .locals 5

    const/4 v0, 0x1

    .line 90
    new-array v1, v0, [Ljava/lang/String;

    const-string v2, "android.permission.CAMERA"

    const/4 v3, 0x0

    aput-object v2, v1, v3

    invoke-static {p0, v1}, Lcom/moji/tool/permission/EasyPermissions;->a(Landroid/content/Context;[Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 91
    invoke-static {p0, v0}, Lcom/moji/camera/PhotoActivity;->takePhoto(Landroid/app/Activity;I)V

    .line 92
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v0

    sget-object v1, Lcom/moji/statistics/EVENT_TAG;->AQI_CAMERA_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v2, "1"

    invoke-virtual {v0, v1, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    goto :goto_0

    :cond_0
    const v1, 0x7f0e0143

    .line 94
    invoke-virtual {p0, v1}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/16 v2, 0x7d0

    new-array v0, v0, [Ljava/lang/String;

    const-string v4, "android.permission.CAMERA"

    aput-object v4, v0, v3

    invoke-static {p0, v1, v2, v0}, Lcom/moji/tool/permission/EasyPermissions;->a(Ljava/lang/Object;Ljava/lang/String;I[Ljava/lang/String;)V

    .line 97
    :goto_0
    new-instance v0, Lcom/moji/location/MJLocationManager;

    invoke-direct {v0}, Lcom/moji/location/MJLocationManager;-><init>()V

    iput-object v0, p0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->b:Lcom/moji/location/MJLocationManager;

    .line 98
    iget-object v0, p0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->b:Lcom/moji/location/MJLocationManager;

    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    sget-object v2, Lcom/moji/location/MJLocationSource;->MOJI_LOCATION:Lcom/moji/location/MJLocationSource;

    invoke-virtual {v0, v1, v2, p0}, Lcom/moji/location/MJLocationManager;->a(Landroid/content/Context;Lcom/moji/location/MJLocationSource;Lcom/moji/location/MJLocationListener;)V

    return-void
.end method

.method public finish()V
    .locals 2

    .line 121
    invoke-super {p0}, Lcom/moji/base/MJActivity;->finish()V

    const v0, 0x7f010015

    const v1, 0x7f010002

    .line 122
    invoke-virtual {p0, v0, v1}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->overridePendingTransition(II)V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    .line 234
    invoke-super {p0, p1, p2, p3}, Lcom/moji/base/MJActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/16 v0, 0x65

    if-eq p1, v0, :cond_5

    const/16 v0, 0x7b

    if-eq p1, v0, :cond_0

    goto :goto_1

    :cond_0
    const/4 p1, -0x1

    if-ne p2, p1, :cond_4

    const-string p1, "result_extra_data"

    .line 238
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getParcelableArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 239
    invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z

    move-result p2

    if-eqz p2, :cond_1

    goto :goto_0

    :cond_1
    const/4 p2, 0x0

    .line 243
    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/moji/camera/model/Image;

    iget-object p1, p1, Lcom/moji/camera/model/Image;->originalUri:Landroid/net/Uri;

    invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object p1

    .line 244
    invoke-static {p1}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->readPictureDegree(Ljava/lang/String;)I

    move-result p2

    if-eqz p2, :cond_2

    .line 246
    invoke-direct {p0, p1}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->b(Ljava/lang/String;)V

    goto :goto_1

    .line 248
    :cond_2
    invoke-direct {p0, p1}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->c(Ljava/lang/String;)V

    .line 249
    invoke-direct {p0, p1}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->a(Ljava/lang/String;)V

    goto :goto_1

    .line 240
    :cond_3
    :goto_0
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->onBackPressed()V

    return-void

    :cond_4
    if-nez p2, :cond_6

    .line 253
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->onBackPressed()V

    goto :goto_1

    .line 257
    :cond_5
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->finish()V

    :cond_6
    :goto_1
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0

    .line 85
    invoke-super {p0, p1}, Lcom/moji/base/MJActivity;->onCreate(Landroid/os/Bundle;)V

    .line 86
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->cameraTask()V

    return-void
.end method

.method public onLocateError(Lcom/moji/location/entity/MJLocation;)V
    .locals 0

    return-void
.end method

.method public onLocateSuccess(Lcom/moji/location/entity/MJLocation;)V
    .locals 2

    .line 346
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getLatitude()D

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->m:D

    .line 347
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getLongitude()D

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->n:D

    .line 348
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getProvince()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->c:Ljava/lang/String;

    .line 349
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getCity()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->i:Ljava/lang/String;

    .line 350
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getDistrict()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->j:Ljava/lang/String;

    .line 351
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getStreet()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->k:Ljava/lang/String;

    .line 352
    invoke-virtual {p1}, Lcom/moji/location/entity/MJLocation;->getAddress()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/aqi/AqiCameraActivity;->l:Ljava/lang/String;

    return-void
.end method

.method public onOtherDataReady(Lcom/moji/location/entity/MJLocation;)V
    .locals 0

    return-void
.end method

.method public onPermissionsDenied(ILjava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    const-string p2, "AqiCameraActivity"

    const-string v0, "cameraTask: onPermissionsDenied Per"

    .line 103
    invoke-static {p2, v0}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/16 p2, 0x7d0

    if-ne p1, p2, :cond_0

    const p1, 0x7f0e0939

    const/4 p2, 0x0

    .line 105
    invoke-static {p0, p1, p2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    .line 106
    invoke-virtual {p0}, Lcom/moji/mjweather/aqi/AqiCameraActivity;->finish()V

    :cond_0
    return-void
.end method

.method public onPermissionsGranted(ILjava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 112
    invoke-super {p0, p1, p2}, Lcom/moji/base/MJActivity;->onPermissionsGranted(ILjava/util/List;)V

    const/16 p2, 0x7d0

    if-ne p1, p2, :cond_0

    const/4 p1, 0x1

    .line 114
    invoke-static {p0, p1}, Lcom/moji/camera/PhotoActivity;->takePhoto(Landroid/app/Activity;I)V

    .line 115
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object p1

    sget-object p2, Lcom/moji/statistics/EVENT_TAG;->AQI_CAMERA_CLICK:Lcom/moji/statistics/EVENT_TAG;

    const-string v0, "1"

    invoke-virtual {p1, p2, v0}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    :cond_0
    return-void
.end method
