Fix every waring
This commit is contained in:
parent
17386d5b04
commit
7b6bbc4410
3 changed files with 4 additions and 6 deletions
|
@ -1,14 +1,12 @@
|
||||||
package uk.kagurach.android101;
|
package uk.kagurach.android101;
|
||||||
|
|
||||||
import android.content.Intent;
|
import android.Manifest;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.Manifest;
|
|
||||||
|
|
||||||
import androidx.activity.EdgeToEdge;
|
import androidx.activity.EdgeToEdge;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package uk.kagurach.android101;
|
package uk.kagurach.android101;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
|
@ -105,13 +105,14 @@ public class MainActivity2 extends AppCompatActivity {
|
||||||
textView.setText(s);
|
textView.setText(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressLint("SetTextI18n")
|
||||||
public void setSize(View view) {
|
public void setSize(View view) {
|
||||||
Button sp = findViewById(R.id.Page2SetSP);
|
Button sp = findViewById(R.id.Page2SetSP);
|
||||||
Button dp = findViewById(R.id.Page2SetDP);
|
Button dp = findViewById(R.id.Page2SetDP);
|
||||||
Button px = findViewById(R.id.Page2SetPX);
|
Button px = findViewById(R.id.Page2SetPX);
|
||||||
|
|
||||||
EditText ed = findViewById(R.id.P2SetTextSize);
|
EditText ed = findViewById(R.id.P2SetTextSize);
|
||||||
int size = 70;
|
int size;
|
||||||
try {
|
try {
|
||||||
size = Integer.parseInt(ed.getText().toString());
|
size = Integer.parseInt(ed.getText().toString());
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
|
|
@ -2,7 +2,6 @@ package uk.kagurach.android101;
|
||||||
|
|
||||||
import static uk.kagurach.android101.KaculateKt.Kaculate;
|
import static uk.kagurach.android101.KaculateKt.Kaculate;
|
||||||
|
|
||||||
import android.content.Intent;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
|
|
Loading…
Reference in a new issue