Commit 22fc6da6f251e20bcb4674d3364f556a17edf115
1 parent
e3c2f052
更新静态对象,代码整理
Showing
24 changed files
with
38 additions
and
53 deletions
.idea/inspectionProfiles/Project_Default.xml
| 1 | <component name="InspectionProjectProfileManager"> | 1 | <component name="InspectionProjectProfileManager"> |
| 2 | <profile version="1.0"> | 2 | <profile version="1.0"> |
| 3 | <option name="myName" value="Project Default" /> | 3 | <option name="myName" value="Project Default" /> |
| 4 | - <inspection_tool class="AndroidLintNewApi" enabled="false" level="ERROR" enabled_by_default="false" /> | ||
| 5 | - <inspection_tool class="AndroidLintSetTextI18n" enabled="false" level="WARNING" enabled_by_default="false" /> | ||
| 6 | <inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false"> | 4 | <inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false"> |
| 7 | <option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" /> | 5 | <option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" /> |
| 8 | <option name="loggerFactoryMethodName" value="getLogger,getLogger,getLog,getLogger" /> | 6 | <option name="loggerFactoryMethodName" value="getLogger,getLogger,getLog,getLogger" /> |
app/src/main/AndroidManifest.xml
| @@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
| 33 | tools:ignore="ProtectedPermissions" /> | 33 | tools:ignore="ProtectedPermissions" /> |
| 34 | 34 | ||
| 35 | <application | 35 | <application |
| 36 | - android:name=".main.application.CNLiveApplication" | 36 | + android:name=".application.CNLiveApplication" |
| 37 | android:allowBackup="true" | 37 | android:allowBackup="true" |
| 38 | android:icon="@mipmap/ic_launcher" | 38 | android:icon="@mipmap/ic_launcher" |
| 39 | android:label="@string/app_name" | 39 | android:label="@string/app_name" |
app/src/main/java/com/cnlive/gundam/main/application/CNLiveApplication.java renamed to app/src/main/java/com/cnlive/gundam/application/CNLiveApplication.java
app/src/main/java/com/cnlive/gundam/main/network/ApiService.java renamed to app/src/main/java/com/cnlive/gundam/data/network/ApiService.java
| 1 | -package com.cnlive.gundam.main.network; | 1 | +package com.cnlive.gundam.data.network; |
| 2 | 2 | ||
| 3 | import com.cnlive.gundam.main.model.ActiveListModel; | 3 | import com.cnlive.gundam.main.model.ActiveListModel; |
| 4 | import com.cnlive.gundam.main.model.ActivePlayInfo; | 4 | import com.cnlive.gundam.main.model.ActivePlayInfo; |
app/src/main/java/com/cnlive/gundam/main/network/RetrofitUtil.java renamed to app/src/main/java/com/cnlive/gundam/data/network/RetrofitUtil.java
app/src/main/java/com/cnlive/gundam/main/network/util/SHA1.java renamed to app/src/main/java/com/cnlive/gundam/data/network/util/SHA1.java
app/src/main/java/com/cnlive/gundam/main/network/util/SignUtil.java renamed to app/src/main/java/com/cnlive/gundam/data/network/util/SignUtil.java
app/src/main/java/com/cnlive/gundam/main/presenter/AnchorInfoPresenter.java
| @@ -2,8 +2,8 @@ package com.cnlive.gundam.main.presenter; | @@ -2,8 +2,8 @@ package com.cnlive.gundam.main.presenter; | ||
| 2 | 2 | ||
| 3 | import android.content.Context; | 3 | import android.content.Context; |
| 4 | 4 | ||
| 5 | -import com.cnlive.gundam.main.network.RetrofitUtil; | ||
| 6 | -import com.cnlive.gundam.main.network.util.SignUtil; | 5 | +import com.cnlive.gundam.data.network.RetrofitUtil; |
| 6 | +import com.cnlive.gundam.data.network.util.SignUtil; | ||
| 7 | import com.cnlive.gundam.main.presenter.view.AnchorInfoView; | 7 | import com.cnlive.gundam.main.presenter.view.AnchorInfoView; |
| 8 | import com.cnlive.gundam.stream.model.ChannelInfoModel; | 8 | import com.cnlive.gundam.stream.model.ChannelInfoModel; |
| 9 | import com.cnlive.libs.util.Config; | 9 | import com.cnlive.libs.util.Config; |
app/src/main/java/com/cnlive/gundam/main/ui/fragment/HomeFragment.java
| @@ -16,8 +16,8 @@ import com.cnlive.gundam.R; | @@ -16,8 +16,8 @@ import com.cnlive.gundam.R; | ||
| 16 | import com.cnlive.gundam.databinding.FragmentActiveListBinding; | 16 | import com.cnlive.gundam.databinding.FragmentActiveListBinding; |
| 17 | import com.cnlive.gundam.main.model.VideoListProgram; | 17 | import com.cnlive.gundam.main.model.VideoListProgram; |
| 18 | import com.cnlive.gundam.main.model.VodListPage; | 18 | import com.cnlive.gundam.main.model.VodListPage; |
| 19 | -import com.cnlive.gundam.main.network.RetrofitUtil; | ||
| 20 | -import com.cnlive.gundam.main.network.util.SignUtil; | 19 | +import com.cnlive.gundam.data.network.RetrofitUtil; |
| 20 | +import com.cnlive.gundam.data.network.util.SignUtil; | ||
| 21 | import com.cnlive.gundam.main.ui.adapter.DataBindingAdapter; | 21 | import com.cnlive.gundam.main.ui.adapter.DataBindingAdapter; |
| 22 | import com.cnlive.gundam.main.utils.ActivityJumpUtil; | 22 | import com.cnlive.gundam.main.utils.ActivityJumpUtil; |
| 23 | import com.cnlive.libs.util.Config; | 23 | import com.cnlive.libs.util.Config; |
app/src/main/java/com/cnlive/gundam/main/ui/fragment/UGCListFragment.java
| @@ -16,8 +16,8 @@ import com.cnlive.gundam.R; | @@ -16,8 +16,8 @@ import com.cnlive.gundam.R; | ||
| 16 | import com.cnlive.gundam.databinding.FragmentActiveListBinding; | 16 | import com.cnlive.gundam.databinding.FragmentActiveListBinding; |
| 17 | import com.cnlive.gundam.main.model.ActiveInfo; | 17 | import com.cnlive.gundam.main.model.ActiveInfo; |
| 18 | import com.cnlive.gundam.main.model.ActiveListModel; | 18 | import com.cnlive.gundam.main.model.ActiveListModel; |
| 19 | -import com.cnlive.gundam.main.network.RetrofitUtil; | ||
| 20 | -import com.cnlive.gundam.main.network.util.SignUtil; | 19 | +import com.cnlive.gundam.data.network.RetrofitUtil; |
| 20 | +import com.cnlive.gundam.data.network.util.SignUtil; | ||
| 21 | import com.cnlive.gundam.main.ui.adapter.DataBindingAdapter; | 21 | import com.cnlive.gundam.main.ui.adapter.DataBindingAdapter; |
| 22 | import com.cnlive.gundam.main.utils.ActivityJumpUtil; | 22 | import com.cnlive.gundam.main.utils.ActivityJumpUtil; |
| 23 | import com.cnlive.libs.util.Config; | 23 | import com.cnlive.libs.util.Config; |
app/src/main/java/com/cnlive/gundam/main/ui/widget/FragmentTabHost.java
| @@ -242,7 +242,7 @@ public class FragmentTabHost extends TabHost | @@ -242,7 +242,7 @@ public class FragmentTabHost extends TabHost | ||
| 242 | 242 | ||
| 243 | private void ensureContent() { | 243 | private void ensureContent() { |
| 244 | if (mRealTabContent == null) { | 244 | if (mRealTabContent == null) { |
| 245 | - mRealTabContent = (FrameLayout) findViewById(mContainerId); | 245 | + mRealTabContent = findViewById(mContainerId); |
| 246 | if (mRealTabContent == null) { | 246 | if (mRealTabContent == null) { |
| 247 | throw new IllegalStateException( | 247 | throw new IllegalStateException( |
| 248 | "No tab content FrameLayout found for id " + mContainerId); | 248 | "No tab content FrameLayout found for id " + mContainerId); |
app/src/main/java/com/cnlive/gundam/main/utils/ActivityJumpUtil.java
| @@ -8,8 +8,8 @@ import com.cnlive.gundam.R; | @@ -8,8 +8,8 @@ import com.cnlive.gundam.R; | ||
| 8 | import com.cnlive.gundam.main.model.ActiveInfo; | 8 | import com.cnlive.gundam.main.model.ActiveInfo; |
| 9 | import com.cnlive.gundam.main.model.ActivePlayInfo; | 9 | import com.cnlive.gundam.main.model.ActivePlayInfo; |
| 10 | import com.cnlive.gundam.main.model.VideoListProgram; | 10 | import com.cnlive.gundam.main.model.VideoListProgram; |
| 11 | -import com.cnlive.gundam.main.network.RetrofitUtil; | ||
| 12 | -import com.cnlive.gundam.main.network.util.SignUtil; | 11 | +import com.cnlive.gundam.data.network.RetrofitUtil; |
| 12 | +import com.cnlive.gundam.data.network.util.SignUtil; | ||
| 13 | import com.cnlive.gundam.video.activity.PlayerActivity; | 13 | import com.cnlive.gundam.video.activity.PlayerActivity; |
| 14 | import com.cnlive.gundam.video.view.VideoView; | 14 | import com.cnlive.gundam.video.view.VideoView; |
| 15 | import com.cnlive.libs.util.Config; | 15 | import com.cnlive.libs.util.Config; |
app/src/main/java/com/cnlive/gundam/main/utils/SharedPreferencesHelper.java
| @@ -9,14 +9,11 @@ import java.util.Set; | @@ -9,14 +9,11 @@ import java.util.Set; | ||
| 9 | public class SharedPreferencesHelper { | 9 | public class SharedPreferencesHelper { |
| 10 | 10 | ||
| 11 | private static final String APP_NAME = "com.cnlive.granzon"; | 11 | private static final String APP_NAME = "com.cnlive.granzon"; |
| 12 | - public static SharedPreferencesHelper instance; | ||
| 13 | - protected Context mContext; | ||
| 14 | - protected SharedPreferences sharedPreferences; | ||
| 15 | - | 12 | + private static SharedPreferencesHelper instance; |
| 13 | + private SharedPreferences sharedPreferences; | ||
| 16 | 14 | ||
| 17 | private SharedPreferencesHelper(Context context) { | 15 | private SharedPreferencesHelper(Context context) { |
| 18 | - mContext = context; | ||
| 19 | - sharedPreferences = mContext.getSharedPreferences(APP_NAME, 0); | 16 | + sharedPreferences = context.getSharedPreferences(APP_NAME, 0); |
| 20 | } | 17 | } |
| 21 | 18 | ||
| 22 | /** | 19 | /** |
| @@ -43,8 +40,8 @@ public class SharedPreferencesHelper { | @@ -43,8 +40,8 @@ public class SharedPreferencesHelper { | ||
| 43 | return sharedPreferences.getBoolean(key, defaultValue); | 40 | return sharedPreferences.getBoolean(key, defaultValue); |
| 44 | } | 41 | } |
| 45 | 42 | ||
| 46 | - public Long getLong(String key){ | ||
| 47 | - return sharedPreferences.getLong(key,0); | 43 | + public Long getLong(String key) { |
| 44 | + return sharedPreferences.getLong(key, 0); | ||
| 48 | } | 45 | } |
| 49 | 46 | ||
| 50 | public int getIntValue(String key) { | 47 | public int getIntValue(String key) { |
| @@ -95,7 +92,7 @@ public class SharedPreferencesHelper { | @@ -95,7 +92,7 @@ public class SharedPreferencesHelper { | ||
| 95 | return sharedPreferences.getAll().keySet(); | 92 | return sharedPreferences.getAll().keySet(); |
| 96 | } | 93 | } |
| 97 | 94 | ||
| 98 | - public boolean contains(String key){ | 95 | + public boolean contains(String key) { |
| 99 | return sharedPreferences.contains(key); | 96 | return sharedPreferences.contains(key); |
| 100 | } | 97 | } |
| 101 | } | 98 | } |
app/src/main/java/com/cnlive/gundam/user/fragment/LoginFragment.java
| @@ -31,7 +31,7 @@ public class LoginFragment extends Fragment implements View.OnClickListener { | @@ -31,7 +31,7 @@ public class LoginFragment extends Fragment implements View.OnClickListener { | ||
| 31 | private FragmentLoginBinding binding; | 31 | private FragmentLoginBinding binding; |
| 32 | 32 | ||
| 33 | //用户数据信息 | 33 | //用户数据信息 |
| 34 | - public static DataEntity data; | 34 | + public DataEntity data; |
| 35 | 35 | ||
| 36 | private Account account;//密码登录的account | 36 | private Account account;//密码登录的account |
| 37 | 37 |
app/src/main/java/com/cnlive/gundam/user/fragment/QuickLoginFragment.java
| @@ -33,7 +33,7 @@ public class QuickLoginFragment extends Fragment implements View.OnClickListener | @@ -33,7 +33,7 @@ public class QuickLoginFragment extends Fragment implements View.OnClickListener | ||
| 33 | private FragmentQuickLoginBinding binding; | 33 | private FragmentQuickLoginBinding binding; |
| 34 | 34 | ||
| 35 | //用户数据信息 | 35 | //用户数据信息 |
| 36 | - public static DataEntity data; | 36 | + public DataEntity data; |
| 37 | 37 | ||
| 38 | //跳转页面的对话框 | 38 | //跳转页面的对话框 |
| 39 | private ProgressDialog dialog; | 39 | private ProgressDialog dialog; |
app/src/main/java/com/cnlive/gundam/user/fragment/RegisterFragment.java
| @@ -34,7 +34,7 @@ public class RegisterFragment extends Fragment implements View.OnClickListener { | @@ -34,7 +34,7 @@ public class RegisterFragment extends Fragment implements View.OnClickListener { | ||
| 34 | private UserFragmentRegisterBinding binding; | 34 | private UserFragmentRegisterBinding binding; |
| 35 | 35 | ||
| 36 | //用户数据信息 | 36 | //用户数据信息 |
| 37 | - public static DataEntity data; | 37 | + public DataEntity data; |
| 38 | 38 | ||
| 39 | //跳转页面的对话框 | 39 | //跳转页面的对话框 |
| 40 | private ProgressDialog dialog; | 40 | private ProgressDialog dialog; |
app/src/main/java/com/cnlive/gundam/user/fragment/UserFindPasswardFragment.java
| @@ -17,7 +17,6 @@ import com.cnlive.gundam.user.util.SystemTools; | @@ -17,7 +17,6 @@ import com.cnlive.gundam.user.util.SystemTools; | ||
| 17 | import com.cnlive.gundam.user.util.ToastUtil; | 17 | import com.cnlive.gundam.user.util.ToastUtil; |
| 18 | import com.cnlive.libs.user.IUserService; | 18 | import com.cnlive.libs.user.IUserService; |
| 19 | import com.cnlive.libs.user.UserUtil; | 19 | import com.cnlive.libs.user.UserUtil; |
| 20 | -import com.cnlive.libs.user.model.DataEntity; | ||
| 21 | import com.cnlive.libs.util.data.network.Callback; | 20 | import com.cnlive.libs.util.data.network.Callback; |
| 22 | 21 | ||
| 23 | 22 | ||
| @@ -28,9 +27,6 @@ import com.cnlive.libs.util.data.network.Callback; | @@ -28,9 +27,6 @@ import com.cnlive.libs.util.data.network.Callback; | ||
| 28 | public class UserFindPasswardFragment extends Fragment implements View.OnClickListener{ | 27 | public class UserFindPasswardFragment extends Fragment implements View.OnClickListener{ |
| 29 | private UserFragmentFindPasswordBinding binding; | 28 | private UserFragmentFindPasswordBinding binding; |
| 30 | 29 | ||
| 31 | - //用户数据信息 | ||
| 32 | - public static DataEntity data; | ||
| 33 | - | ||
| 34 | //跳转页面的对话框 | 30 | //跳转页面的对话框 |
| 35 | private ProgressDialog dialog; | 31 | private ProgressDialog dialog; |
| 36 | 32 |
app/src/main/java/com/cnlive/gundam/user/util/DevilUtil.java
| @@ -24,14 +24,8 @@ public class DevilUtil { | @@ -24,14 +24,8 @@ public class DevilUtil { | ||
| 24 | v.getLocationInWindow(l); | 24 | v.getLocationInWindow(l); |
| 25 | int left=l[0],top=l[1],bottom=top+v.getHeight(),right=left | 25 | int left=l[0],top=l[1],bottom=top+v.getHeight(),right=left |
| 26 | +v.getWidth(); | 26 | +v.getWidth(); |
| 27 | - if(event.getX()>left&&event.getX()<right | ||
| 28 | - &&event.getY()>top&&event.getY()<bottom){ | ||
| 29 | - // 点击EditText的事件,忽略它。 | ||
| 30 | - return false; | ||
| 31 | - }else{ | ||
| 32 | - // hideSoftInput(v.getWindowToken()); | ||
| 33 | - return true; | ||
| 34 | - } | 27 | + return !(event.getX() > left && event.getX() < right |
| 28 | + && event.getY() > top && event.getY() < bottom); | ||
| 35 | } | 29 | } |
| 36 | // 如果焦点不是EditText则忽略,这个发生在视图刚绘制完,第一个焦点不在EditView上,和用户用轨迹球选择其他的焦点 | 30 | // 如果焦点不是EditText则忽略,这个发生在视图刚绘制完,第一个焦点不在EditView上,和用户用轨迹球选择其他的焦点 |
| 37 | return false; | 31 | return false; |
app/src/main/java/com/cnlive/gundam/user/util/DownTimer.java
| @@ -132,9 +132,9 @@ public class DownTimer { | @@ -132,9 +132,9 @@ public class DownTimer { | ||
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | public interface TimeListener { | 134 | public interface TimeListener { |
| 135 | - public void onFinish(); | 135 | + void onFinish(); |
| 136 | 136 | ||
| 137 | - public void onInterval(long remainTime); | 137 | + void onInterval(long remainTime); |
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | public void setTimerLiener(TimeListener listener) { | 140 | public void setTimerLiener(TimeListener listener) { |
app/src/main/java/com/cnlive/gundam/user/util/ToastUtil.java
| @@ -39,8 +39,8 @@ public class ToastUtil { | @@ -39,8 +39,8 @@ public class ToastUtil { | ||
| 39 | show_msg = msg; | 39 | show_msg = msg; |
| 40 | toast = new Toast(context); | 40 | toast = new Toast(context); |
| 41 | View view = LayoutInflater.from(context).inflate(TOAST_LAYOUT_ID, null, false); | 41 | View view = LayoutInflater.from(context).inflate(TOAST_LAYOUT_ID, null, false); |
| 42 | - ImageView imageView = (ImageView) view.findViewById(R.id.image); | ||
| 43 | - TextView textView = (TextView) view.findViewById(R.id.text); | 42 | + ImageView imageView = view.findViewById(R.id.image); |
| 43 | + TextView textView = view.findViewById(R.id.text); | ||
| 44 | imageView.setVisibility(View.GONE); | 44 | imageView.setVisibility(View.GONE); |
| 45 | 45 | ||
| 46 | textView.setText(msg); | 46 | textView.setText(msg); |
app/src/main/java/com/cnlive/gundam/video/utils/NetworkChangeReceive.java
| @@ -17,7 +17,7 @@ import org.greenrobot.eventbus.EventBus; | @@ -17,7 +17,7 @@ import org.greenrobot.eventbus.EventBus; | ||
| 17 | public class NetworkChangeReceive extends BroadcastReceiver { | 17 | public class NetworkChangeReceive extends BroadcastReceiver { |
| 18 | @Override | 18 | @Override |
| 19 | public void onReceive(Context context, Intent intent) { | 19 | public void onReceive(Context context, Intent intent) { |
| 20 | - ConnectivityManager manager = (ConnectivityManager) context.getSystemService(context.CONNECTIVITY_SERVICE); | 20 | + ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); |
| 21 | NetworkInfo networkInfo = manager.getActiveNetworkInfo(); | 21 | NetworkInfo networkInfo = manager.getActiveNetworkInfo(); |
| 22 | if (networkInfo != null && networkInfo.isAvailable()) { | 22 | if (networkInfo != null && networkInfo.isAvailable()) { |
| 23 | NetworkInfo.State mobile = manager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState(); | 23 | NetworkInfo.State mobile = manager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState(); |
app/src/main/java/com/cnlive/gundam/video/view/PlayerAccelerometerSensor.java
| @@ -23,7 +23,7 @@ public class PlayerAccelerometerSensor { | @@ -23,7 +23,7 @@ public class PlayerAccelerometerSensor { | ||
| 23 | private double boundaryValue; | 23 | private double boundaryValue; |
| 24 | 24 | ||
| 25 | public interface ScreenOrientationListener { | 25 | public interface ScreenOrientationListener { |
| 26 | - public void onOrientationChange(int orientation); | 26 | + void onOrientationChange(int orientation); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | public PlayerAccelerometerSensor(Context context) { | 29 | public PlayerAccelerometerSensor(Context context) { |
app/src/main/java/com/cnlive/gundam/video/view/PlayerInfoView.java
| @@ -61,7 +61,7 @@ public class PlayerInfoView extends RelativeLayout { | @@ -61,7 +61,7 @@ public class PlayerInfoView extends RelativeLayout { | ||
| 61 | //记录当前视频是否是ugc | 61 | //记录当前视频是否是ugc |
| 62 | private boolean isUgc = false; | 62 | private boolean isUgc = false; |
| 63 | 63 | ||
| 64 | - private static VideoInfoListener l; | 64 | + private VideoInfoListener l; |
| 65 | 65 | ||
| 66 | public PlayerInfoView(Context context) { | 66 | public PlayerInfoView(Context context) { |
| 67 | this(context, null); | 67 | this(context, null); |
app/src/main/java/com/cnlive/gundam/video/view/VideoView.java
| @@ -50,13 +50,13 @@ public class VideoView extends BaseVideoView implements PlayerTouchView.VideoTou | @@ -50,13 +50,13 @@ public class VideoView extends BaseVideoView implements PlayerTouchView.VideoTou | ||
| 50 | //拖动结束或拖拽进度条时需要seekTo的位置 | 50 | //拖动结束或拖拽进度条时需要seekTo的位置 |
| 51 | private long touchSeekToPosition = 0; | 51 | private long touchSeekToPosition = 0; |
| 52 | //记录当前是否是竖屏 | 52 | //记录当前是否是竖屏 |
| 53 | - private static ObservableBoolean observableIsPortrait; | 53 | + private ObservableBoolean observableIsPortrait; |
| 54 | //记录当前是否是ugc节目 | 54 | //记录当前是否是ugc节目 |
| 55 | - private static ObservableBoolean observableIsUgc; | 55 | + private ObservableBoolean observableIsUgc; |
| 56 | //记录当前视频高度 | 56 | //记录当前视频高度 |
| 57 | - private static ObservableInt observableVideoHeight; | 57 | + private ObservableInt observableVideoHeight; |
| 58 | //记录当前视频宽度 | 58 | //记录当前视频宽度 |
| 59 | - private static ObservableInt observableVideoWidth; | 59 | + private ObservableInt observableVideoWidth; |
| 60 | //记录当前视频是否已经onError | 60 | //记录当前视频是否已经onError |
| 61 | private boolean isPlayerError = false; | 61 | private boolean isPlayerError = false; |
| 62 | //设置touchView 是否拦截touch事件 | 62 | //设置touchView 是否拦截touch事件 |
| @@ -343,7 +343,7 @@ public class VideoView extends BaseVideoView implements PlayerTouchView.VideoTou | @@ -343,7 +343,7 @@ public class VideoView extends BaseVideoView implements PlayerTouchView.VideoTou | ||
| 343 | 343 | ||
| 344 | @Override | 344 | @Override |
| 345 | public boolean canTouch() { | 345 | public boolean canTouch() { |
| 346 | - return videoInfoViewIsShow() ? false : canTouch; | 346 | + return !videoInfoViewIsShow() && canTouch; |
| 347 | } | 347 | } |
| 348 | // --------------------- touch 相关回调 end------------------------- | 348 | // --------------------- touch 相关回调 end------------------------- |
| 349 | 349 |