Skip to content

Commit

Permalink
カラム設定で添付データありの発言だけ閲覧。取得漏れの可能性がある場所に隙間を表示。ブロックしたユーザ、ミュートしたユーザのリスト
Browse files Browse the repository at this point in the history
  • Loading branch information
tateisu committed Apr 26, 2017
1 parent 6d24d0d commit 454e93b
Show file tree
Hide file tree
Showing 35 changed files with 1,133 additions and 250 deletions.
1 change: 1 addition & 0 deletions .idea/dictionaries/tateisu.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "jp.juggler.subwaytooter"
minSdkVersion 21
targetSdkVersion 25
versionCode 14
versionName "0.1.4"
versionCode 15
versionName "0.1.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Expand Down
23 changes: 22 additions & 1 deletion app/src/main/java/jp/juggler/subwaytooter/ActMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,17 @@ public class ActMain extends AppCompatActivity
// super.attachBaseContext( CalligraphyContextWrapper.wrap(newBase));
// }

float density;


SharedPreferences pref;

@Override
protected void onCreate( Bundle savedInstanceState ){
super.onCreate( savedInstanceState );

this.density = getResources().getDisplayMetrics().density;

requestWindowFeature( Window.FEATURE_NO_TITLE );

pref = Pref.pref( this );
Expand Down Expand Up @@ -297,6 +302,13 @@ public boolean onNavigationItemSelected( MenuItem item ){
}else if( id == R.id.nav_app_exit ){
finish();

}else if( id == R.id.nav_add_mutes ){
performAddTimeline( Column.TYPE_MUTES );

}else if( id == R.id.nav_add_blocks ){
performAddTimeline( Column.TYPE_BLOCKS );


// Handle the camera action
// }else if( id == R.id.nav_gallery ){
//
Expand Down Expand Up @@ -1206,7 +1218,7 @@ private void dumpColumnList(){

static final String FILE_COLUMN_LIST = "column_list";

private void saveColumnList(){
void saveColumnList(){
JSONArray array = encodeColumnList();
try{
OutputStream os = openFileOutput( FILE_COLUMN_LIST, MODE_PRIVATE );
Expand Down Expand Up @@ -1495,6 +1507,11 @@ protected void onPostExecute( TootApiResult result ){
for( Column column : pager_adapter.column_list ){
column.removeStatusByAccount( access_info, who.id );
}
}else{
for( Column column : pager_adapter.column_list ){
column.removeFromMuteList( access_info, who.id );
}

}
showColumnMatchAccount( access_info );
}
Expand Down Expand Up @@ -1569,6 +1586,10 @@ protected void onPostExecute( TootApiResult result ){
for( Column column : pager_adapter.column_list ){
column.removeStatusByAccount( access_info, who.id );
}
}else{
for( Column column : pager_adapter.column_list ){
column.removeFromBlockList( access_info, who.id );
}
}
showColumnMatchAccount( access_info );
}
Expand Down
Loading

0 comments on commit 454e93b

Please sign in to comment.