フォーマットを整えました

This commit is contained in:
磯野 2024-01-12 11:08:34 +09:00
parent 277999e536
commit ff05035662

View File

@ -67,7 +67,7 @@ public class MainActivity extends AppCompatActivity {
//通知のやつ //通知のやつ
public void notifyMain() { public void notifyMain() {
((Vibrator)getSystemService(Context.VIBRATOR_SERVICE)).vibrate(1000); ((Vibrator) getSystemService(Context.VIBRATOR_SERVICE)).vibrate(1000);
NotificationCompat.Builder builder = new NotificationCompat NotificationCompat.Builder builder = new NotificationCompat
.Builder(this, "CHANNEL_ID") .Builder(this, "CHANNEL_ID")
.setSmallIcon(android.R.drawable.ic_menu_info_details) .setSmallIcon(android.R.drawable.ic_menu_info_details)
@ -91,8 +91,9 @@ public class MainActivity extends AppCompatActivity {
} }
//Bluetooth_setupの戻るボタン //Bluetooth_setupの戻るボタン
public void setupBackButton(boolean enableBackButton){ public void setupBackButton(boolean enableBackButton) {
ActionBar actionBar = getSupportActionBar(); ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(enableBackButton); actionBar.setDisplayHomeAsUpEnabled(enableBackButton);
} }