1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-25 00:21:26 +01:00

bug fix...

This commit is contained in:
tateisu 2017-04-30 07:02:24 +09:00
parent ecc214d51b
commit 74d147e8e8
5 changed files with 15 additions and 10 deletions

View File

@ -9,8 +9,8 @@ android {
applicationId "jp.juggler.subwaytooter"
minSdkVersion 21
targetSdkVersion 25
versionCode 22
versionName "0.2.2"
versionCode 24
versionName "0.2.4"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

View File

@ -33,10 +33,11 @@ public class App1 extends Application {
static final String DB_NAME = "app_db";
static final int DB_VERSION = 5;
static final int DB_VERSION = 6;
// 2017/4/25 v10 1=>2 SavedAccount に通知設定を追加
// 2017/4/25 v10 1=>2 NotificationTracking テーブルを追加
// 2017/4/29 v20 2=>5 MediaShown,ContentWarningのインデクスが間違っていたので貼り直す
// 2017/4/29 v23 5=>6 MutedAppテーブルの追加UserRelationテーブルの追加
static DBOpenHelper db_open_helper;
public static SQLiteDatabase getDB(){
@ -177,10 +178,10 @@ public class App1 extends Application {
if( db_open_helper == null ){
db_open_helper = new DBOpenHelper( getApplicationContext() );
if( BuildConfig.DEBUG){
SQLiteDatabase db = db_open_helper.getWritableDatabase();
db_open_helper.onCreate( db );
}
// if( BuildConfig.DEBUG){
// SQLiteDatabase db = db_open_helper.getWritableDatabase();
// db_open_helper.onCreate( db );
// }
}
if( image_loader == null ){

View File

@ -654,7 +654,7 @@ class Column {
}
}
dst.add( status );
dst.add( item );
}
}

View File

@ -32,7 +32,9 @@ public class MutedApp {
}
public static void onDBUpgrade( SQLiteDatabase db, int oldVersion, int newVersion ){
if(oldVersion < 6 && newVersion >= 6){
onDBCreate( db );
}
}
public static void save( String app_name ){

View File

@ -48,7 +48,9 @@ public class UserRelation {
}
public static void onDBUpgrade( SQLiteDatabase db, int oldVersion, int newVersion ){
if(oldVersion < 6 && newVersion >= 6){
onDBCreate( db );
}
}
public static void deleteOld( long now){