@@ -94,9 +94,11 @@ protected void onCreate(Bundle savedInstanceState) {
94
94
//dbの状態に応じて設定をアプリ起動時に反映
95
95
bindSettingData ( );
96
96
97
- /*ディスプレイの密度を取得し、密度が2.75以下の場合はサイズを変える*/
98
- if (getResources ().getDisplayMetrics ().density > 2.75 ){
99
- myLibrary .setLayoutDp (this , textBOX , 335f , 300f );//テキストボックス
97
+
98
+ /*ディスプレイの密度を取得し、サイズを変える*/
99
+ //System.out.println(getResources().getDisplayMetrics().scaledDensity);
100
+ if (getResources ().getDisplayMetrics ().scaledDensity > 450 ){
101
+ myLibrary .setLayoutDp (this , textBOX , 320f , 300f );//テキストボックス
100
102
myLibrary .setLayoutDp (this , Watcher , 95f , 50f );//スイッチ
101
103
}
102
104
}
@@ -152,9 +154,9 @@ public void onClick(View view) {
152
154
else {
153
155
//クリップボードにセット
154
156
clipboard .setPrimaryClip (ClipData .newPlainText (null , textBOX .getText ()));
155
- if (Build .VERSION .SDK_INT > 33 ) {//os 13以下の時だけメッセージを出す
156
- myLibrary .msgToast (getApplicationContext (),R .string .burble_message_copied ,Toast .LENGTH_SHORT );
157
- }
157
+ if (Build .VERSION .SDK_INT > 33 ) {//os 13以下の時だけメッセージを出す
158
+ myLibrary .msgToast (getApplicationContext (),R .string .burble_message_copied ,Toast .LENGTH_SHORT );
159
+ }
158
160
}
159
161
}
160
162
}
@@ -179,9 +181,9 @@ public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
179
181
LayoutInflater inflater = requireActivity ().getLayoutInflater ();
180
182
View myDia = inflater .inflate (R .layout .dialog_detail , null );
181
183
CheckBox half_engCheckbox = myDia .findViewById (R .id .half_alphabet_Checkbox ),
182
- half_numCheckbox = myDia .findViewById (R .id .half_number_CheckBox ),
183
- full_engCheckbox = myDia .findViewById (R .id .full_alphabet_Checkbox ),
184
- full_numCheckbox = myDia .findViewById (R .id .full_number_Checkbox );
184
+ half_numCheckbox = myDia .findViewById (R .id .half_number_CheckBox ),
185
+ full_engCheckbox = myDia .findViewById (R .id .full_alphabet_Checkbox ),
186
+ full_numCheckbox = myDia .findViewById (R .id .full_number_Checkbox );
185
187
EditText setMaxNum = myDia .findViewById (R .id .editSetLength );
186
188
TextView letter = myDia .findViewById (R .id .text_letters2 ),
187
189
line = myDia .findViewById (R .id .text_lines2 ),
@@ -323,8 +325,8 @@ void bindSettingData(){
323
325
myLibrary .dataAllDelete (modeDB ,"watcherModeData" );
324
326
}
325
327
//compound btnイベント呼び出し//
326
- if ( myLibrary . isMode ( modeDB , "maxLengthData" ,new String []{"size" },"TRUE" )){
327
- maxCursor = modeDB . query ( "maxLengthData" , new String []{ "size" }, null , null , null , null , null );
328
+ maxCursor = modeDB . query ( "maxLengthData" ,new String []{"size" },null , null , null , null , null );
329
+ if ( maxCursor . moveToFirst ()){
328
330
maxText [0 ] = new InputFilter .LengthFilter (Integer .parseInt (maxCursor .getString (0 )));
329
331
textBOX .setFilters (maxText );
330
332
}
0 commit comments