Commit ccad951174bbde78cd2270348b1820c81715c7cf
1 parent
d045d156
Exists in
yxb_dev
and in
2 other branches
no message
Showing
6 changed files
with
18 additions
and
19 deletions
Show diff stats
app/src/main/AndroidManifest.xml
| @@ -127,7 +127,6 @@ | @@ -127,7 +127,6 @@ | ||
| 127 | <!--android:windowSoftInputMode="adjustPan|stateAlwaysHidden" />--> | 127 | <!--android:windowSoftInputMode="adjustPan|stateAlwaysHidden" />--> |
| 128 | <activity | 128 | <activity |
| 129 | android:name=".ui.activity.MyChildActivity" | 129 | android:name=".ui.activity.MyChildActivity" |
| 130 | - android:launchMode="singleInstance" | ||
| 131 | android:screenOrientation="portrait"/> | 130 | android:screenOrientation="portrait"/> |
| 132 | <activity android:name=".ui.activity.consult.ConsultOneLevelActivity"/> | 131 | <activity android:name=".ui.activity.consult.ConsultOneLevelActivity"/> |
| 133 | <!-- <activity android:name=".ui.activity.LoginAndRegistActivity" /> --> | 132 | <!-- <activity android:name=".ui.activity.LoginAndRegistActivity" /> --> |
| @@ -147,12 +146,10 @@ | @@ -147,12 +146,10 @@ | ||
| 147 | android:windowSoftInputMode="adjustPan|stateHidden"/> | 146 | android:windowSoftInputMode="adjustPan|stateHidden"/> |
| 148 | <activity | 147 | <activity |
| 149 | android:name=".ui.activity.binding.SelectSchoolActivity" | 148 | android:name=".ui.activity.binding.SelectSchoolActivity" |
| 150 | - android:launchMode="singleInstance" | ||
| 151 | android:screenOrientation="portrait" | 149 | android:screenOrientation="portrait" |
| 152 | android:windowSoftInputMode="adjustPan|stateHidden"/> | 150 | android:windowSoftInputMode="adjustPan|stateHidden"/> |
| 153 | 151 | ||
| 154 | <activity android:name=".ui.activity.LoginAndRegistActivity" | 152 | <activity android:name=".ui.activity.LoginAndRegistActivity" |
| 155 | - android:launchMode="singleInstance" | ||
| 156 | android:screenOrientation="portrait" | 153 | android:screenOrientation="portrait" |
| 157 | /> | 154 | /> |
| 158 | <activity | 155 | <activity |
app/src/main/java/com/shunzhi/parent/presenter/consult/ConsultPresenter.java
| 1 | package com.shunzhi.parent.presenter.consult; | 1 | package com.shunzhi.parent.presenter.consult; |
| 2 | 2 | ||
| 3 | -import android.content.res.TypedArray; | ||
| 4 | -import android.util.Log; | ||
| 5 | -import android.util.TypedValue; | ||
| 6 | import android.view.View; | 3 | import android.view.View; |
| 7 | import android.widget.LinearLayout; | 4 | import android.widget.LinearLayout; |
| 8 | 5 | ||
| @@ -10,7 +7,6 @@ import com.google.gson.Gson; | @@ -10,7 +7,6 @@ import com.google.gson.Gson; | ||
| 10 | import com.google.gson.JsonArray; | 7 | import com.google.gson.JsonArray; |
| 11 | import com.google.gson.JsonObject; | 8 | import com.google.gson.JsonObject; |
| 12 | import com.share.mvpsdk.utils.OkHttpExceptionUtil; | 9 | import com.share.mvpsdk.utils.OkHttpExceptionUtil; |
| 13 | -import com.share.mvpsdk.utils.ToastUtils; | ||
| 14 | import com.shunzhi.parent.R; | 10 | import com.shunzhi.parent.R; |
| 15 | import com.shunzhi.parent.bean.GuangGaoBean; | 11 | import com.shunzhi.parent.bean.GuangGaoBean; |
| 16 | import com.shunzhi.parent.bean.ToolBean; | 12 | import com.shunzhi.parent.bean.ToolBean; |
| @@ -19,12 +15,9 @@ import com.shunzhi.parent.bean.channel.ChannelContextBean; | @@ -19,12 +15,9 @@ import com.shunzhi.parent.bean.channel.ChannelContextBean; | ||
| 19 | import com.shunzhi.parent.bean.channel.ChannelInfo; | 15 | import com.shunzhi.parent.bean.channel.ChannelInfo; |
| 20 | import com.shunzhi.parent.contract.consult.ConsultContract; | 16 | import com.shunzhi.parent.contract.consult.ConsultContract; |
| 21 | import com.shunzhi.parent.model.consult.ConsultModel; | 17 | import com.shunzhi.parent.model.consult.ConsultModel; |
| 22 | -import com.shunzhi.parent.ui.activity.consult.ConsultOneLevelActivity; | ||
| 23 | import com.shunzhi.parent.util.AttrsUtils; | 18 | import com.shunzhi.parent.util.AttrsUtils; |
| 24 | import com.shunzhi.parent.views.TextAndImgShowView; | 19 | import com.shunzhi.parent.views.TextAndImgShowView; |
| 25 | 20 | ||
| 26 | -import org.json.JSONObject; | ||
| 27 | - | ||
| 28 | import java.util.ArrayList; | 21 | import java.util.ArrayList; |
| 29 | import java.util.List; | 22 | import java.util.List; |
| 30 | 23 |
app/src/main/java/com/shunzhi/parent/ui/activity/LoginAndRegistActivity.java
| 1 | package com.shunzhi.parent.ui.activity; | 1 | package com.shunzhi.parent.ui.activity; |
| 2 | 2 | ||
| 3 | import android.os.Bundle; | 3 | import android.os.Bundle; |
| 4 | +import android.util.Log; | ||
| 4 | 5 | ||
| 5 | import com.share.mvpsdk.base.activity.BaseCompatActivity; | 6 | import com.share.mvpsdk.base.activity.BaseCompatActivity; |
| 6 | import com.shunzhi.parent.R; | 7 | import com.shunzhi.parent.R; |
| @@ -18,6 +19,7 @@ public class LoginAndRegistActivity extends BaseCompatActivity { | @@ -18,6 +19,7 @@ public class LoginAndRegistActivity extends BaseCompatActivity { | ||
| 18 | protected void initView(Bundle savedInstanceState) { | 19 | protected void initView(Bundle savedInstanceState) { |
| 19 | if (savedInstanceState == null) { | 20 | if (savedInstanceState == null) { |
| 20 | type = getIntent().getStringExtra("type"); | 21 | type = getIntent().getStringExtra("type"); |
| 22 | + Log.e("aaa--==",type); | ||
| 21 | mFragments[0] = LoginAndRegistFragment.getInstance(type); | 23 | mFragments[0] = LoginAndRegistFragment.getInstance(type); |
| 22 | loadRootFragment(R.id.frame, mFragments[0]); | 24 | loadRootFragment(R.id.frame, mFragments[0]); |
| 23 | } else { | 25 | } else { |
| @@ -26,6 +28,15 @@ public class LoginAndRegistActivity extends BaseCompatActivity { | @@ -26,6 +28,15 @@ public class LoginAndRegistActivity extends BaseCompatActivity { | ||
| 26 | } | 28 | } |
| 27 | 29 | ||
| 28 | @Override | 30 | @Override |
| 31 | + protected void onResume() { | ||
| 32 | + super.onResume(); | ||
| 33 | +// type = getIntent().getStringExtra("type"); | ||
| 34 | +// Log.e("aaa--==",type); | ||
| 35 | +// mFragments[0] = LoginAndRegistFragment.getInstance(type); | ||
| 36 | +// loadRootFragment(R.id.frame, mFragments[0]); | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + @Override | ||
| 29 | protected int getLayoutId() { | 40 | protected int getLayoutId() { |
| 30 | return R.layout.activity_regist; | 41 | return R.layout.activity_regist; |
| 31 | } | 42 | } |
app/src/main/java/com/shunzhi/parent/ui/activity/binding/CheckInfoActivity.java
| @@ -102,7 +102,7 @@ public class CheckInfoActivity extends BaseMVPCompatActivity<MyChildContract.MyC | @@ -102,7 +102,7 @@ public class CheckInfoActivity extends BaseMVPCompatActivity<MyChildContract.MyC | ||
| 102 | @Override | 102 | @Override |
| 103 | public void onClick(View v) { | 103 | public void onClick(View v) { |
| 104 | popupWindow.dismiss(); | 104 | popupWindow.dismiss(); |
| 105 | - startActivity(new Intent().setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TASK).setClass(CheckInfoActivity.this, MyChildActivity.class)); | 105 | + startActivity(new Intent().setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP).setClass(CheckInfoActivity.this, MyChildActivity.class)); |
| 106 | finish(); | 106 | finish(); |
| 107 | } | 107 | } |
| 108 | }); | 108 | }); |
app/src/main/java/com/shunzhi/parent/ui/fragment/MineFragment.java
| @@ -11,9 +11,7 @@ import android.view.View; | @@ -11,9 +11,7 @@ import android.view.View; | ||
| 11 | import android.widget.LinearLayout; | 11 | import android.widget.LinearLayout; |
| 12 | import android.widget.TextView; | 12 | import android.widget.TextView; |
| 13 | 13 | ||
| 14 | -import com.bumptech.glide.Glide; | ||
| 15 | import com.makeramen.roundedimageview.RoundedImageView; | 14 | import com.makeramen.roundedimageview.RoundedImageView; |
| 16 | -import com.netease.nimlib.sdk.NIMClient; | ||
| 17 | import com.share.mvpsdk.base.BasePresenter; | 15 | import com.share.mvpsdk.base.BasePresenter; |
| 18 | import com.share.mvpsdk.base.fragment.BaseMVPCompatFragment; | 16 | import com.share.mvpsdk.base.fragment.BaseMVPCompatFragment; |
| 19 | import com.share.mvpsdk.utils.CacheUtils; | 17 | import com.share.mvpsdk.utils.CacheUtils; |
app/src/main/java/com/shunzhi/parent/ui/fragment/loginandregistfragment/LoginAndRegistFragment.java
| @@ -126,12 +126,12 @@ public class LoginAndRegistFragment extends BaseMVPCompatFragment<LoginAndRegist | @@ -126,12 +126,12 @@ public class LoginAndRegistFragment extends BaseMVPCompatFragment<LoginAndRegist | ||
| 126 | back_login.setVisibility(View.VISIBLE); | 126 | back_login.setVisibility(View.VISIBLE); |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | - roundedImageView.setOnClickListener(new View.OnClickListener() { | ||
| 130 | - @Override | ||
| 131 | - public void onClick(View view) { | ||
| 132 | - mPresenter.loginResult("18358575337", "575337"); | ||
| 133 | - } | ||
| 134 | - }); | 129 | +// roundedImageView.setOnClickListener(new View.OnClickListener() { |
| 130 | +// @Override | ||
| 131 | +// public void onClick(View view) { | ||
| 132 | +// mPresenter.loginResult("18358575337", "575337"); | ||
| 133 | +// } | ||
| 134 | +// }); | ||
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | 137 |