ent.Intent; 5 6
import android.graphics.Color;
6 7
import android.media.MediaPlayer;
7 8
import android.os.Bundle;
9
import android.support.v4.content.LocalBroadcastManager;
8 10
import android.view.View;
9 11
import android.view.WindowManager;
10 12
import android.widget.ImageView;
@ -84,6 +86,9 @@ public class PictureVideoPlayActivity extends PictureBaseActivity implements Med
84 86
    public void onClick(View v) {
85 87
        int id = v.getId();
86 88
        if (id == R.id.picture_left_back) {
89
            Intent intent = new Intent("publish-video-topic-activity");
90
            intent.putExtra("message", "finish_preview_video");
91
            LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent);
87 92
            finish();
88 93
        } else if (id == R.id.iv_play) {
89 94
            mVideoView.start();
@ -92,6 +97,14 @@ public class PictureVideoPlayActivity extends PictureBaseActivity implements Med
92 97
    }
93 98
94 99
    @Override
100
    public void onBackPressed() {
101
        super.onBackPressed();
102
        Intent intent = new Intent("publish-video-topic-activity");
103
        intent.putExtra("message", "finish_preview_video");
104
        LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent);
105
    }
106
107
    @Override
95 108
    protected void attachBaseContext(Context newBase) {
96 109
        super.attachBaseContext(new ContextWrapper(newBase) {
97 110
            @Override

+ 5 - 0
videolibrary/picture_library/src/main/java/com/luck/picture/lib/adapter/PictureImageGridAdapter.java

@ -3,9 +3,11 @@ package com.luck.picture.lib.adapter;
3 3
import android.animation.AnimatorSet;
4 4
import android.animation.ObjectAnimator;
5 5
import android.content.Context;
6
import android.content.Intent;
6 7
import android.graphics.PorterDuff;
7 8
import android.graphics.drawable.Drawable;
8 9
import android.support.v4.content.ContextCompat;
10
import android.support.v4.content.LocalBroadcastManager;
9 11
import android.support.v7.widget.RecyclerView;
10 12
import android.text.TextUtils;
11 13
import android.view.LayoutInflater;
@ -142,6 +144,9 @@ public class PictureImageGridAdapter extends RecyclerView.Adapter<RecyclerView.V
142 144
                @Override
143 145
                public void onClick(View v) {
144 146
                    if (imageSelectChangedListener != null) {
147
                        Intent intent = new Intent("publish-video-topic-activity");
148
                        intent.putExtra("message", "take_video");
149
                        LocalBroadcastManager.getInstance(context).sendBroadcast(intent);
145 150
                        imageSelectChangedListener.onTakePhoto();
146 151
                    }
147 152
                }

全天价格统一调整 · 5c1b137d5d - Gogs: Go Git Service
Преглед на файлове

全天价格统一调整

huyuguo преди 6 години
родител
ревизия
5c1b137d5d

+ 11 - 0
app/src/main/java/com/electric/chargingpile/activity/MainMapActivity.java

@ -4763,6 +4763,17 @@ public class MainMapActivity extends Activity implements LocationSource, AMapLoc
4763 4763
                    }
4764 4764
                }
4765 4765
            }
4766
        } else {
4767
            double totalPrice = 0;
4768
            try {
4769
                totalPrice = Double.valueOf(zongjia);
4770
            } catch (Exception e) {
4771
                e.printStackTrace();
4772
            }
4773
4774
            if (totalPrice != 0) {
4775
                fenshi_info_textview.setText("全天价格统一");
4776
            }
4766 4777
        }
4767 4778
4768 4779
        if (belong_attribute != null && belong_attribute.contains("私人")) {

+ 4 - 0
app/src/main/java/com/electric/chargingpile/activity/RecommendChargingStationActivity.java

@ -620,6 +620,10 @@ public class RecommendChargingStationActivity extends AppCompatActivity implemen
620 620
                        }
621 621
                    }
622 622
                }
623
            } else {
624
                if (recommendZhan.getZongjia() != 0) {
625
                    holder.fenshi_info_textview.setText("全天价格统一");
626
                }
623 627
            }
624 628
        }
625 629

+ 4 - 0
app/src/main/java/com/electric/chargingpile/activity/SearchActivity.java

@ -789,6 +789,10 @@ public class SearchActivity extends Activity implements OnClickListener, Inputti
789 789
                        }
790 790
                    }
791 791
                }
792
            } else {
793
                if (point.getZongjia() != 0) {
794
                    viewHolder.fenshi_info_textview.setText("全天价格统一");
795
                }
792 796
            }
793 797

794 798
            viewHolder.iv_label_public.setText(point.getBelong_attribute());

+ 4 - 0
app/src/main/java/com/electric/chargingpile/activity/SearchAllActivity.java

@ -340,6 +340,10 @@ public class SearchAllActivity extends AppCompatActivity {
340 340
                        }
341 341
                    }
342 342
                }
343
            } else {
344
                if (point.getZongjia() != 0) {
345
                    viewHolder.fenshi_info_textview.setText("全天价格统一");
346
                }
343 347
            }
344 348
345 349
            viewHolder.iv_label_public.setText(point.getBelong_attribute());