修复
#3002 java.io.FileNotFoundException res/drawable-xhdpi-v4/ic_daily_00028.png com.mogo.module.apps.anim.OthersAnim$1.handleMessage(OthersAnim.java:44) https://bugly.qq.com/v2/crash-reporting/crashes/ac71228f85/3002?pid=1 Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
8
.idea/misc.xml
generated
8
.idea/misc.xml
generated
@@ -25,6 +25,14 @@
|
||||
<entry key="modules/mogo-module-apps/src/main/res/layout/module_apps_fragment_apps.xml" value="0.28125" />
|
||||
<entry key="modules/mogo-module-apps/src/main/res/layout/module_apps_fragment_apps_navigator.xml" value="0.27395833333333336" />
|
||||
<entry key="modules/mogo-module-apps/src/main/res/layout/module_apps_item_app.xml" value="0.28125" />
|
||||
<entry key="modules/mogo-module-carchatting/src/main/res/layout/module_car_chatting_calling_user_view.xml" value="0.46041666666666664" />
|
||||
<entry key="modules/mogo-module-carchatting/src/main/res/layout/module_car_chatting_fragment_team_view.xml" value="0.46041666666666664" />
|
||||
<entry key="modules/mogo-module-carchatting/src/main/res/layout/module_car_chatting_launcher_calling_hawk_eye_view.xml" value="0.46041666666666664" />
|
||||
<entry key="modules/mogo-module-carchatting/src/main/res/layout/module_car_chatting_launcher_calling_view.xml" value="0.25" />
|
||||
<entry key="modules/mogo-module-carchatting/src/main/res/layout/module_car_chatting_launcher_team_invitation_hawk_eye_view.xml" value="0.46041666666666664" />
|
||||
<entry key="modules/mogo-module-carchatting/src/main/res/layout/module_car_chatting_launcher_team_invitation_view.xml" value="0.46041666666666664" />
|
||||
<entry key="modules/mogo-module-carchatting/src/main/res/layout/module_car_chatting_launcher_teammate_item.xml" value="0.46041666666666664" />
|
||||
<entry key="modules/mogo-module-carchatting/src/main/res/layout/module_car_chatting_launcher_user_view.xml" value="0.46041666666666664" />
|
||||
<entry key="modules/mogo-module-extensions/src/main/res/layout-xhdpi-2000x1080/include_navi_info_panle.xml" value="0.3640625" />
|
||||
<entry key="modules/mogo-module-extensions/src/main/res/layout/camera_item_v2x_live_video.xml" value="0.4401041666666667" />
|
||||
<entry key="modules/mogo-module-extensions/src/main/res/layout/camera_push_live_video.xml" value="0.4401041666666667" />
|
||||
|
||||
@@ -32,34 +32,38 @@ public class OthersAnim implements Anim {
|
||||
@Override
|
||||
public void handleMessage( Message msg ) {
|
||||
super.handleMessage( msg );
|
||||
switch ( msg.what ) {
|
||||
case MSG_LOOP:
|
||||
if ( mStarted ) {
|
||||
if ( AnimRes.sRes.length == 0 ) {
|
||||
return;
|
||||
try {
|
||||
switch ( msg.what ) {
|
||||
case MSG_LOOP:
|
||||
if ( mStarted ) {
|
||||
if ( AnimRes.sRes.length == 0 ) {
|
||||
return;
|
||||
}
|
||||
if ( mStartIndex >= AnimRes.sRes.length - 1 ) {
|
||||
mStartIndex = mKeyPoint;
|
||||
}
|
||||
mImageView.setImageResource( AnimRes.sRes[mStartIndex++ % AnimRes.sRes.length] );
|
||||
mHandler.sendEmptyMessageDelayed( MSG_LOOP, FRAME_INTERVAL );
|
||||
}
|
||||
if ( mStartIndex >= AnimRes.sRes.length - 1 ) {
|
||||
mStartIndex = mKeyPoint;
|
||||
break;
|
||||
case MSG_CHANGE:
|
||||
if ( mLastType == AnimRes.EmojiType.Others ) {
|
||||
boolean start = mStarted;
|
||||
stop();
|
||||
mEmojiIndex++;
|
||||
AnimRes.sRes = AnimRes.sAll[mEmojiIndex % AnimRes.sAll.length];
|
||||
mKeyPoint = AnimRes.sKeyPoint[mEmojiIndex % AnimRes.sKeyPoint.length];
|
||||
mBkg.setImageResource( AnimRes.sBkgRes[mEmojiIndex % AnimRes.sBkgRes.length] );
|
||||
mStartIndex = 0;
|
||||
if ( start ) {
|
||||
start();
|
||||
}
|
||||
mHandler.sendEmptyMessageDelayed( MSG_CHANGE, ANIM_INTERVAL );
|
||||
}
|
||||
mImageView.setImageResource( AnimRes.sRes[mStartIndex++ % AnimRes.sRes.length] );
|
||||
mHandler.sendEmptyMessageDelayed( MSG_LOOP, FRAME_INTERVAL );
|
||||
}
|
||||
break;
|
||||
case MSG_CHANGE:
|
||||
if ( mLastType == AnimRes.EmojiType.Others ) {
|
||||
boolean start = mStarted;
|
||||
stop();
|
||||
mEmojiIndex++;
|
||||
AnimRes.sRes = AnimRes.sAll[mEmojiIndex % AnimRes.sAll.length];
|
||||
mKeyPoint = AnimRes.sKeyPoint[mEmojiIndex % AnimRes.sKeyPoint.length];
|
||||
mBkg.setImageResource( AnimRes.sBkgRes[mEmojiIndex % AnimRes.sBkgRes.length] );
|
||||
mStartIndex = 0;
|
||||
if ( start ) {
|
||||
start();
|
||||
}
|
||||
mHandler.sendEmptyMessageDelayed( MSG_CHANGE, ANIM_INTERVAL );
|
||||
}
|
||||
break;
|
||||
break;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user