#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:
董宏宇
2021-10-29 10:18:37 +08:00
parent f1be75c2f6
commit 3ab3247f82
2 changed files with 38 additions and 26 deletions

8
.idea/misc.xml generated
View File

@@ -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" />

View File

@@ -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();
}
}
};