diff --git a/app/build.gradle b/app/build.gradle index b5a388511c..d0655f60ec 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -110,6 +110,20 @@ android { // 是否使用高德sdk自定义导航 buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' } + // f系列-分体机 + f80x { + applicationId rootProject.ext.android.fLauncherApplicationId + dimension "product" + // 使用思必驰语音 + buildConfigField 'int', 'AIType', '2' + buildConfigField 'boolean', 'AI_ASSIST_ACTIVE_STAUTS', 'false' + // 车机类型,主要用于区分自研车机还是别人家的车机,自研车机类型为0 + buildConfigField 'int', 'CAR_MACHINE_TYPE', '0' + buildConfigField 'boolean', 'ROAD_EVENT_ANIMATED', 'true' + manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.fLauncherAmapApiValue] + // 是否使用高德sdk自定义导航 + buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' + } // e系列,采用Launcher方案 e8xx { applicationId rootProject.ext.android.launcherApplicationId @@ -180,6 +194,20 @@ android { // 是否使用高德sdk自定义导航 buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' } + // d系列 2 + 32 + d80x { + applicationId rootProject.ext.android.independentApplicationId + dimension "product" + // 使用同行者语音 + buildConfigField 'int', 'AIType', '1' + buildConfigField 'boolean', 'AI_ASSIST_ACTIVE_STAUTS', 'false' + // 车机类型,主要用于区分自研车机还是别人家的车机,自研车机类型为0 + buildConfigField 'int', 'CAR_MACHINE_TYPE', '0' + buildConfigField 'boolean', 'ROAD_EVENT_ANIMATED', 'false' + manifestPlaceholders = [AMAP_API_VALUE: rootProject.ext.android.commonIndependentAmapApiValue] + // 是否使用高德sdk自定义导航 + buildConfigField 'boolean', 'USE_CUSTOM_NAVI', 'false' + } // d系列 1+16 版本 d82x { applicationId rootProject.ext.android.independentApplicationId diff --git a/app/regroup.gradle b/app/regroup.gradle index 4b3e0ba638..a30fe32197 100644 --- a/app/regroup.gradle +++ b/app/regroup.gradle @@ -2,8 +2,8 @@ afterEvaluate { - def independent = ["em3", "em1", "d8xx", "d82x", "bydauto"] - def launcher = ["f8xx", "em4"] + def independent = ["em3", "em1", "d80x", "d82x", "bydauto"] + def launcher = ["f80x", "em4"] it.getTasks().iterator().forEachRemaining { def task = it diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 21e549a0e5..dd500f64d8 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,6 +12,7 @@ android:label="@string/app_shell_name" android:supportsRtl="true" android:theme="@style/AppTheme.App" + android:resizeableActivity="false" tools:replace="android:label"> diff --git a/app/src/main/java/com/mogo/launcher/MogoApplication.java b/app/src/main/java/com/mogo/launcher/MogoApplication.java index 2f96782f71..478aa6f23f 100644 --- a/app/src/main/java/com/mogo/launcher/MogoApplication.java +++ b/app/src/main/java/com/mogo/launcher/MogoApplication.java @@ -77,6 +77,7 @@ public class MogoApplication extends AbsMogoApplication { MogoModulePaths.addBaseModule( new MogoModule( ServiceConst.PATH_REFRESH_STRATEGY, ServiceConst.PATH_REFRESH_STRATEGY ) ); MogoModulePaths.addBaseModule( new MogoModule( V2XConst.PATH_V2X_UI, V2XConst.MODULE_NAME ) ); MogoModulePaths.addBaseModule(new MogoModule( MogoServicePaths.PATH_STRATEGY_SHARE,"StrategyShare")); + MogoModulePaths.addBaseModule(new MogoModule(MogoServicePaths.PATH_MOGO_MONITOR, "MogoMonitor")); MogoModulePaths.addModule( new MogoModule( V2XConst.PATH_EVENT_PANEL, V2XConst.MODULE_NAME_EVENT_PANEL ) ); MogoModulePaths.addModule( new MogoModule( PushUIConstants.PATH, PushUIConstants.NAME ) ); diff --git a/build.gradle b/build.gradle index 32a0f5815c..d210cb3ce4 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,6 @@ apply from: "config.gradle" apply from: "javadoc.gradle" buildscript { - ext.kotlin_version = '1.3.61' repositories { maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' @@ -19,7 +18,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.5.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.71' classpath "com.alibaba:arouter-register:1.0.2" classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.4' // NOTE: Do not place your application dependencies here; they belong diff --git a/config.gradle b/config.gradle index 3f73f1bb7f..99ea43c40a 100644 --- a/config.gradle +++ b/config.gradle @@ -1,6 +1,6 @@ ext { time = "" - + kotlin_version = "1.3.71" android = [ // applicationId : "com.mogo.launcher", // zhidadoApplicationId: "com.zhidao.launcher", @@ -20,8 +20,8 @@ ext { dependencies = [ // androidx - androidxappcompat : "androidx.appcompat:appcompat:1.0.2", - androidxccorektx : "androidx.core:core-ktx:1.2.0", + androidxappcompat : "androidx.appcompat:appcompat:1.1.0", + androidxccorektx : "androidx.core:core-ktx:1.3.0", androidxconstraintlayout : "androidx.constraintlayout:constraintlayout:1.1.3", boostmultidex : "com.bytedance.boost_multidex:boost_multidex:1.0.1", androidxviewpager2 : "androidx.viewpager2:viewpager2:1.0.0", @@ -141,7 +141,7 @@ ext { accountsdk : "com.zhidao.accountservice:account-sdk:1.0.11", // crash crashSdk : "com.zhidaoauto.crash.log:library:1.0.5", - kotlinstdlibjdk7 : "org.jetbrains.kotlin:kotlin-stdlib-jdk7", + kotlinstdlibjdk7 : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${kotlin_version}", //探路 videoarmv7 : "com.shuyu:gsyVideoPlayer-armv7a:7.1.2", @@ -196,6 +196,8 @@ ext { androidxroomktx : "androidx.room:room-ktx:2.2.3", // - mogomodulewidgets : "com.mogo.module:module-widgets:${MOGO_MODULE_WIDGETS_VERSION}", + mogomodulewidgets : "com.mogo.module:module-widgets:${MOGO_MODULE_WIDGETS_VERSION}", + + kotlingradleplugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}" ] } \ No newline at end of file diff --git a/libraries/tanlulib/build.gradle b/libraries/tanlulib/build.gradle index cf297b1c10..de83c92c42 100644 --- a/libraries/tanlulib/build.gradle +++ b/libraries/tanlulib/build.gradle @@ -39,13 +39,10 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'androidx.appcompat:appcompat:1.1.0' - implementation 'androidx.core:core-ktx:1.3.0' - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test.ext:junit:1.1.1' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' - implementation 'com.zhidaoauto.common:service:1.0.4.10' + implementation rootProject.ext.dependencies.kotlinstdlibjdk7 + implementation rootProject.ext.dependencies.androidxappcompat + implementation rootProject.ext.dependencies.androidxccorektx + implementation rootProject.ext.dependencies.aiassist implementation 'com.squareup.okhttp3:okhttp:3.10.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0' implementation 'com.zhidaoauto.controller:api:1.0.8' @@ -53,6 +50,7 @@ dependencies { implementation 'com.zhidao.video:video-processor:1.0.2.1' implementation 'com.foundation.utils:common-utils:1.0.7' + implementation rootProject.ext.dependencies.eventbus compileOnly rootProject.ext.dependencies.mogocommons implementation rootProject.ext.dependencies.eventbus implementation rootProject.ext.dependencies.coroutinescore diff --git a/libraries/tanlulib/src/test/java/com/zhidao/roadcondition/ExampleUnitTest.kt b/libraries/tanlulib/src/test/java/com/zhidao/roadcondition/ExampleUnitTest.kt deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/main-extensions/mogo-module-main-independent/src/main/AndroidManifest.xml b/main-extensions/mogo-module-main-independent/src/main/AndroidManifest.xml index 0d4d401316..965be80a22 100644 --- a/main-extensions/mogo-module-main-independent/src/main/AndroidManifest.xml +++ b/main-extensions/mogo-module-main-independent/src/main/AndroidManifest.xml @@ -7,7 +7,7 @@ android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize" android:enabled="true" android:launchMode="singleInstance" - android:resizeableActivity="true" + android:resizeableActivity="false" android:resumeWhilePausing="true" android:screenOrientation="landscape" android:stateNotNeeded="true" diff --git a/main-extensions/mogo-module-main-independent/src/main/java/com/zhidao/mogo/module/main/independent/MainIndependentActivity.java b/main-extensions/mogo-module-main-independent/src/main/java/com/zhidao/mogo/module/main/independent/MainIndependentActivity.java index 6eb8f5fe61..5e8642fa01 100644 --- a/main-extensions/mogo-module-main-independent/src/main/java/com/zhidao/mogo/module/main/independent/MainIndependentActivity.java +++ b/main-extensions/mogo-module-main-independent/src/main/java/com/zhidao/mogo/module/main/independent/MainIndependentActivity.java @@ -1,14 +1,16 @@ package com.zhidao.mogo.module.main.independent; +import android.annotation.TargetApi; +import android.os.Build; import android.os.Bundle; import android.view.View; import android.widget.FrameLayout; import androidx.annotation.Nullable; -import com.mogo.commons.debug.DebugConfig; import com.mogo.module.common.map.CustomNaviInterrupter; import com.mogo.module.main.MainActivity; +import com.mogo.utils.TipToast; /** * 针对独立应用形式,做单独定制 @@ -47,8 +49,19 @@ public class MainIndependentActivity extends MainActivity { if ( mCoverUpLayout.getVisibility() != View.VISIBLE ) { mServiceApis.getAdasControllerApi().setUseAlgorithm( true ); } + if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){ + fixInMultiWindowMode(); + } } + @TargetApi( Build.VERSION_CODES.N ) + private void fixInMultiWindowMode(){ + if ( isInMultiWindowMode() ) { + TipToast.shortTip( R.string.module_main_un_support_multi_window_mode ); + } + } + + @Override protected void onPause() { super.onPause(); diff --git a/main-extensions/mogo-module-main-independent/src/main/res/values/strings.xml b/main-extensions/mogo-module-main-independent/src/main/res/values/strings.xml new file mode 100644 index 0000000000..3eade77337 --- /dev/null +++ b/main-extensions/mogo-module-main-independent/src/main/res/values/strings.xml @@ -0,0 +1,4 @@ + + + 应用不支持分屏 + \ No newline at end of file diff --git a/main-extensions/mogo-module-main-launcher/src/main/AndroidManifest.xml b/main-extensions/mogo-module-main-launcher/src/main/AndroidManifest.xml index b59a0bf53e..bbca1838ed 100644 --- a/main-extensions/mogo-module-main-launcher/src/main/AndroidManifest.xml +++ b/main-extensions/mogo-module-main-launcher/src/main/AndroidManifest.xml @@ -8,7 +8,7 @@ android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize" android:enabled="true" android:launchMode="singleInstance" - android:resizeableActivity="true" + android:resizeableActivity="false" android:resumeWhilePausing="true" android:screenOrientation="landscape" android:stateNotNeeded="true" diff --git a/modules/mogo-module-apps/src/main/AndroidManifest.xml b/modules/mogo-module-apps/src/main/AndroidManifest.xml index d6de6be910..711a26f5af 100644 --- a/modules/mogo-module-apps/src/main/AndroidManifest.xml +++ b/modules/mogo-module-apps/src/main/AndroidManifest.xml @@ -26,7 +26,7 @@ android:name=".AppsListActivity" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation|screenSize|smallestScreenSize" android:launchMode="singleTask" - android:resizeableActivity="true" + android:resizeableActivity="false" android:resumeWhilePausing="true" android:screenOrientation="landscape" android:stateNotNeeded="true" diff --git a/modules/mogo-module-main/src/main/java/com/mogo/module/main/MainActivity.java b/modules/mogo-module-main/src/main/java/com/mogo/module/main/MainActivity.java index bdff1b721e..9cb389a04d 100644 --- a/modules/mogo-module-main/src/main/java/com/mogo/module/main/MainActivity.java +++ b/modules/mogo-module-main/src/main/java/com/mogo/module/main/MainActivity.java @@ -175,9 +175,9 @@ public class MainActivity extends MvpActivity< MainView, MainPresenter > impleme } ); // 初始化MonitorModule - IMogoMonitorProvider monitorProvider = (IMogoMonitorProvider) ARouter.getInstance().build(MogoServicePaths.PATH_MOGO_MONITOR).navigation(this); - monitorProvider.resetActivityContext(this); - +// IMogoMonitorProvider monitorProvider = (IMogoMonitorProvider) ARouter.getInstance().build(MogoServicePaths.PATH_MOGO_MONITOR).navigation(this); +// monitorProvider.resetActivityContext(this); + mServiceApis.getMogoMonitorApi().resetActivityContext(this); } private void startBaseService() { diff --git a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorProvider.java b/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorProvider.java index b61b845b08..133fd25bd5 100644 --- a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorProvider.java +++ b/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorProvider.java @@ -48,9 +48,11 @@ public class MogoMonitorProvider implements IMogoMonitorProvider, @Override public void init(Context context) { + this.context = context; IMogoServiceApis apis = (IMogoServiceApis) ARouter.getInstance().build(MogoServicePaths.PATH_SERVICE_APIS).navigation(context); apis.getSocketManagerApi(context).registerOnMessageListener(MogoMonitorConst.LOG_PUSH_TYPE, this); + startRemoteCtrl(); } private void startRemoteCtrl(){ @@ -68,7 +70,6 @@ public class MogoMonitorProvider implements IMogoMonitorProvider, this.context = context; logDebugDialog = new LogDebugDialog(context); logDebugDialog.setDialogListener(this); - startRemoteCtrl(); } @Override diff --git a/modules/mogo-module-search/build.gradle b/modules/mogo-module-search/build.gradle index 53027f6e57..b5b990719a 100644 --- a/modules/mogo-module-search/build.gradle +++ b/modules/mogo-module-search/build.gradle @@ -49,6 +49,7 @@ dependencies { implementation rootProject.ext.dependencies.androidxcardview kapt rootProject.ext.dependencies.aroutercompiler implementation rootProject.ext.dependencies.rxandroid + implementation rootProject.ext.dependencies.kotlinstdlibjdk7 if (Boolean.valueOf(RELEASE)) { @@ -66,7 +67,6 @@ dependencies { implementation project(':modules:mogo-module-common') implementation project(':modules:mogo-module-gps-simulator') } - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation 'com.zhidaoauto.voice.controller:api:1.0.2' } diff --git a/modules/mogo-module-service/src/main/java/com/mogo/module/service/launchercard/LauncherCardRefresher.java b/modules/mogo-module-service/src/main/java/com/mogo/module/service/launchercard/LauncherCardRefresher.java index 58fd0037ea..825c071feb 100644 --- a/modules/mogo-module-service/src/main/java/com/mogo/module/service/launchercard/LauncherCardRefresher.java +++ b/modules/mogo-module-service/src/main/java/com/mogo/module/service/launchercard/LauncherCardRefresher.java @@ -39,8 +39,8 @@ class LauncherCardRefresher { public static final int MSG_REFRESH = 2020; public static final int MSG_TTS_TIP = 2021; - public static final long ONE_MINUTE = 60 * 1000L; - public static final long HALF_ONE_MINUTE = 30 * 1000L; + public static final long ONE_MINUTE = 15 * 1000L; + public static final long ONE_DAY = 24 * 60 * ONE_MINUTE; private LauncherCardRefresher( Context context ) { mContext = context; @@ -117,7 +117,7 @@ class LauncherCardRefresher { int counter = SharedPrefsMgr.getInstance( mContext ).getInt( KEY_LauncherCardTipCounter, 0 ); if ( counter >= 5 ) { long lastTipTime = SharedPrefsMgr.getInstance( mContext ).getLong( KEY_LauncherCardTipLastTipTime, 0L ); - if ( System.currentTimeMillis() - lastTipTime < /*10 * 24 * 60 **/ ONE_MINUTE ) { + if ( System.currentTimeMillis() - lastTipTime < 10 * ONE_DAY ) { stop(); return; } else { @@ -223,14 +223,16 @@ class LauncherCardRefresher { if ( response.getResult().getExploreWay() == null || response.getResult().getExploreWay().isEmpty() ) { return false; } - speakTTS( String.format( tts, response.getResult().getExploreWay().size(), mRefreshStrategy.getDesc() ) ); - notifyLauncherCard( String.format( info, response.getResult().getExploreWay().size(), mRefreshStrategy.getDesc() ) ); + int size = response.getResult().getExploreWay().size(); + speakTTS( tts = String.format( tts, size, mRefreshStrategy.getDesc() ) ); + notifyLauncherCard( String.format( info, size, mRefreshStrategy.getDesc() ), size, tts ); } else { if ( response.getResult().getOnlineCar() == null || response.getResult().getOnlineCar().isEmpty() ) { return false; } - speakTTS( String.format( tts, response.getResult().getOnlineCar().size(), mRefreshStrategy.getDesc() ) ); - notifyLauncherCard( String.format( info, response.getResult().getOnlineCar().size(), mRefreshStrategy.getDesc() ) ); + int size = response.getResult().getOnlineCar().size(); + speakTTS( tts = String.format( tts, size, mRefreshStrategy.getDesc() ) ); + notifyLauncherCard( String.format( info, size, mRefreshStrategy.getDesc() ), size , tts); } return true; } @@ -243,13 +245,15 @@ class LauncherCardRefresher { AIAssist.getInstance( mContext ).speakTTSVoice( msg ); } - private void notifyLauncherCard( String info ) { + private void notifyLauncherCard( String info, int amount, String tts ) { Intent intent = new Intent( "com.mogo.launcher.v2x" ); - intent.putExtra( "v2x_warning_type", 20000 ); - intent.putExtra( "v2x_warining_timeout", 20 ); - intent.putExtra( "v2x_warning_tts", "" ); + intent.putExtra( "v2x_warning_type", "20000" ); + intent.putExtra( "v2x_warining_timeout", 20 * 1000 ); + intent.putExtra( "v2x_warning_tts", tts ); + intent.putExtra( "v2x_warning_eventCount", amount ); intent.putExtra( "v2x_warning_info", info ); mContext.sendBroadcast( intent ); + Logger.d( TAG, "发送广播到桌面卡片." ); } private void playTTS() { diff --git a/modules/mogo-module-tanlu/build.gradle b/modules/mogo-module-tanlu/build.gradle index f28f498553..fb48f1e204 100644 --- a/modules/mogo-module-tanlu/build.gradle +++ b/modules/mogo-module-tanlu/build.gradle @@ -42,13 +42,9 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'androidx.appcompat:appcompat:1.0.2' - implementation 'androidx.core:core-ktx:1.3.0' - implementation 'androidx.recyclerview:recyclerview:1.1.0' - testImplementation 'junit:junit:4.12' - androidTestImplementation 'androidx.test:runner:1.2.0' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' + implementation rootProject.ext.dependencies.androidxccorektx + implementation rootProject.ext.dependencies.kotlinstdlibjdk7 + implementation rootProject.ext.dependencies.androidxrecyclerview implementation rootProject.ext.dependencies.androidxappcompat implementation rootProject.ext.dependencies.arouter annotationProcessor rootProject.ext.dependencies.aroutercompiler diff --git a/modules/mogo-module-tanlu/src/main/AndroidManifest.xml b/modules/mogo-module-tanlu/src/main/AndroidManifest.xml index 1c2b75eee1..4337c2942a 100644 --- a/modules/mogo-module-tanlu/src/main/AndroidManifest.xml +++ b/modules/mogo-module-tanlu/src/main/AndroidManifest.xml @@ -42,14 +42,6 @@ - - - - - - - - \ No newline at end of file diff --git a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/receiver/NetWorkReceiver.kt b/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/receiver/NetWorkReceiver.kt deleted file mode 100644 index d29f26bb9e..0000000000 --- a/modules/mogo-module-tanlu/src/main/java/com/mogo/module/tanlu/receiver/NetWorkReceiver.kt +++ /dev/null @@ -1,43 +0,0 @@ -package com.mogo.module.tanlu.receiver - -import android.Manifest -import android.content.BroadcastReceiver -import android.content.Context -import android.content.Intent -import android.content.pm.PackageManager -import android.util.Log -import android.widget.Toast -import androidx.core.content.ContextCompat -import com.mogo.module.tanlu.util.NetworkUtil - -/** - * @description 网络改变监听 - * - * @author lixiaopeng - * @since 2019-10-17 - */ -class NetWorkReceiver : BroadcastReceiver() { - private var isConnect = true - - override fun onReceive(context: Context, intent: Intent?) { - if (ContextCompat.checkSelfPermission( - context, - Manifest.permission.ACCESS_NETWORK_STATE - ) === PackageManager.PERMISSION_GRANTED - ) { - if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP) { - isConnect = NetworkUtil.isConnected(context) - } else { - isConnect = NetworkUtil.isConnectedV21(context) - } - } - -// if (!isConnect) { -// Toast.makeText(context, "网络已断开,请检查网络", Toast.LENGTH_SHORT).show() -// //TODO -// -// } - - } - -} \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XShareEventAdapter.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XShareEventAdapter.java index d13325056c..9412e5dc79 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XShareEventAdapter.java +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XShareEventAdapter.java @@ -48,7 +48,6 @@ public class V2XShareEventAdapter extends RecyclerView.Adapter 0) { + dataArrayList.clear(); + adapter.notifyDataSetChanged(); + } loadingView.stopWithError(msg, View.VISIBLE); + loadingView.refresButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { @@ -200,7 +205,7 @@ public class V2XShareEventsFragment extends MvpFragment diff --git a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_description.xml b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_description.xml index e9d00092d3..90a57dcea2 100644 --- a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_description.xml +++ b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_share_description.xml @@ -5,7 +5,7 @@ android:layout_height="wrap_content" android:layout_marginLeft="20px" android:layout_marginRight="20px" - android:layout_marginBottom="16px" + android:layout_marginBottom="14px" android:background="@drawable/bg_v2x_event_description" android:orientation="vertical"> diff --git a/modules/mogo-module-v2x/src/main/res/values/style.xml b/modules/mogo-module-v2x/src/main/res/values/style.xml index e7ecb3aa03..f6fc71f93c 100644 --- a/modules/mogo-module-v2x/src/main/res/values/style.xml +++ b/modules/mogo-module-v2x/src/main/res/values/style.xml @@ -7,9 +7,8 @@