クラッシュレポート対応

This commit is contained in:
tateisu 2017-05-07 02:32:11 +09:00
parent ff682b382f
commit e8529e4c1b
3 changed files with 18 additions and 7 deletions

View File

@ -9,8 +9,8 @@ android {
applicationId "jp.juggler.subwaytooter"
minSdkVersion 21
targetSdkVersion 25
versionCode 38
versionName "0.3.8"
versionCode 39
versionName "0.3.9"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

View File

@ -88,9 +88,12 @@ public class ActMutedApp extends AppCompatActivity {
// 左にスワイプした(右端に青が見えた) なら要素を削除する
if( swipedDirection == ListSwipeItem.SwipeDirection.LEFT ){
MyItem adapterItem = (MyItem) item.getTag();
MutedApp.delete( adapterItem.name );
listAdapter.removeItem( listAdapter.getPositionForItem( adapterItem ) );
Object o = item.getTag();
if( o instanceof MyItem){
MyItem adapterItem = ( MyItem ) o;
MutedApp.delete( adapterItem.name );
listAdapter.removeItem( listAdapter.getPositionForItem( adapterItem ) );
}
}
}
} );

View File

@ -2211,7 +2211,11 @@ class Column {
restore_y = getItemTop( restore_idx );
}catch( IndexOutOfBoundsException ex ){
restore_idx = position;
restore_y = getItemTop( restore_idx );
try{
restore_y = getItemTop( restore_idx );
}catch( IndexOutOfBoundsException ex2 ){
restore_idx = -1;
}
}
}
@ -2221,7 +2225,11 @@ class Column {
fireShowContent();
if( holder != null ){
setItemTop( restore_idx + added - 1, restore_y );
if(restore_idx >= 0 ){
setItemTop( restore_idx + added - 1, restore_y );
}else{
// ギャップが画面内にない場合何もしない
}
}else{
if( scroll_save != null ){
scroll_save.pos += added - 1;