Skip to content

Commit

Permalink
アプリ設定に簡略表示を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
tateisu committed Apr 29, 2017
1 parent 671a1e7 commit 2d7e821
Show file tree
Hide file tree
Showing 19 changed files with 955 additions and 113 deletions.
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 20
versionName "0.2.0"
versionCode 21
versionName "0.2.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Expand Down
7 changes: 6 additions & 1 deletion app/src/main/java/jp/juggler/subwaytooter/ActAppSetting.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ protected void onCreate( @Nullable Bundle savedInstanceState ){
Switch swDontConfirmBeforeCloseColumn;
Switch swPriorLocalURL;
Switch swDisableFastScroller;
Switch swSimpleList;

Spinner spBackButtonAction;
Spinner spUITheme;
Expand All @@ -57,7 +58,8 @@ private void initUI(){
swDisableFastScroller = (Switch) findViewById( R.id.swDisableFastScroller );
swDisableFastScroller.setOnCheckedChangeListener( this );


swSimpleList = (Switch) findViewById( R.id.swSimpleList );
swSimpleList.setOnCheckedChangeListener( this );

{
String[] caption_list = new String[ 4 ];
Expand Down Expand Up @@ -92,6 +94,8 @@ private void loadUIFromData(){
swDontConfirmBeforeCloseColumn.setChecked( pref.getBoolean( Pref.KEY_DONT_CONFIRM_BEFORE_CLOSE_COLUMN, false ) );
swPriorLocalURL.setChecked( pref.getBoolean( Pref.KEY_PRIOR_LOCAL_URL, false ) );
swDisableFastScroller.setChecked( pref.getBoolean( Pref.KEY_DISABLE_FAST_SCROLLER, false ) );
swSimpleList.setChecked( pref.getBoolean(Pref.KEY_SIMPLE_LIST,false) );

spBackButtonAction.setSelection( pref.getInt(Pref.KEY_BACK_BUTTON_ACTION,0) );
spUITheme.setSelection( pref.getInt(Pref.KEY_UI_THEME,0) );
load_busy = false;
Expand All @@ -103,6 +107,7 @@ private void saveUIToData(){
.putBoolean( Pref.KEY_DONT_CONFIRM_BEFORE_CLOSE_COLUMN, swDontConfirmBeforeCloseColumn.isChecked() )
.putBoolean( Pref.KEY_PRIOR_LOCAL_URL, swPriorLocalURL.isChecked() )
.putBoolean( Pref.KEY_DISABLE_FAST_SCROLLER, swDisableFastScroller.isChecked() )
.putBoolean( Pref.KEY_SIMPLE_LIST, swSimpleList.isChecked() )
.putInt( Pref.KEY_BACK_BUTTON_ACTION, spBackButtonAction.getSelectedItemPosition() )
.putInt( Pref.KEY_UI_THEME, spUITheme.getSelectedItemPosition() )
.apply();
Expand Down
Loading

0 comments on commit 2d7e821

Please sign in to comment.