Skip to content

Commit

Permalink
删除多余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
maning committed Apr 5, 2017
1 parent 1831f12 commit e61c827
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
18 changes: 0 additions & 18 deletions app/src/main/java/com/maning/gankmm/ui/activity/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import android.Manifest;
import android.app.PendingIntent;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
Expand All @@ -22,16 +21,10 @@

import com.afollestad.materialdialogs.DialogAction;
import com.afollestad.materialdialogs.MaterialDialog;
import com.alibaba.sdk.android.feedback.impl.FeedbackAPI;
import com.amap.api.location.AMapLocation;
import com.amap.api.location.AMapLocationClient;
import com.amap.api.location.AMapLocationClientOption;
import com.amap.api.location.AMapLocationListener;
import com.maning.gankmm.R;
import com.maning.gankmm.bean.AppUpdateInfo;
import com.maning.gankmm.bean.WeatherEntity;
import com.maning.gankmm.constant.Constants;
import com.maning.gankmm.http.GankApi;
import com.maning.gankmm.skin.SkinBroadcastReceiver;
import com.maning.gankmm.skin.SkinManager;
import com.maning.gankmm.ui.base.BaseActivity;
Expand All @@ -57,11 +50,7 @@
import net.youmi.android.normal.video.VideoAdManager;

import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import butterknife.Bind;
import butterknife.ButterKnife;
Expand Down Expand Up @@ -98,7 +87,6 @@ public class MainActivity extends BaseActivity implements IMainView, View.OnClic
//夜间模式的广播
private SkinBroadcastReceiver skinBroadcastReceiver;
private MaterialDialog dialogUpdate;
private MaterialDialog dialogCloseWarn;
private static final int citysChooseRequestCode = 10001;

private NotifyUtil notifyUtils;
Expand Down Expand Up @@ -497,9 +485,6 @@ public void onStart() {
public void onComplete(String path) {
KLog.i("installAPK----onComplete:" + path);
InstallUtils.installAPK(context, path);
if (dialogCloseWarn != null && dialogCloseWarn.isShowing()) {
dialogCloseWarn.dismiss();
}
if (dialogUpdate != null && dialogUpdate.isShowing()) {
dialogUpdate.dismiss();
}
Expand All @@ -523,9 +508,6 @@ public void onLoading(long total, long current) {

@Override
public void onFail(Exception e) {
if (dialogCloseWarn != null && dialogCloseWarn.isShowing()) {
dialogCloseWarn.dismiss();
}
if (dialogUpdate != null && dialogUpdate.isShowing()) {
dialogUpdate.dismiss();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public class SettingActivity extends BaseActivity implements ISettingView {

private SettingPresenterImpl settingPresenter;
private MaterialDialog dialogUpdate;
private MaterialDialog dialogCloseWarn;

private AppUpdateInfo appUpdateInfo;
private NotifyUtil notifyUtils;
Expand Down Expand Up @@ -299,9 +298,6 @@ public void onStart() {
public void onComplete(String path) {
KLog.i("installAPK----onComplete:" + path);
InstallUtils.installAPK(context, path);
if (dialogCloseWarn != null && dialogCloseWarn.isShowing()) {
dialogCloseWarn.dismiss();
}
if (dialogUpdate != null && dialogUpdate.isShowing()) {
dialogUpdate.dismiss();
}
Expand All @@ -325,9 +321,6 @@ public void onLoading(long total, long current) {

@Override
public void onFail(Exception e) {
if (dialogCloseWarn != null && dialogCloseWarn.isShowing()) {
dialogCloseWarn.dismiss();
}
if (dialogUpdate != null && dialogUpdate.isShowing()) {
dialogUpdate.dismiss();
}
Expand Down

0 comments on commit e61c827

Please sign in to comment.