Skip to content

Commit 560fed5

Browse files
author
DevKumar00001
committed
chore: Lisence text fixes
1 parent 31c92bb commit 560fed5

25 files changed

Lines changed: 345 additions & 311 deletions

app/src/main/java/android/code/editor/MyApplication.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
/*
22
* This file is part of Android Code Editor.
33
*
4-
* Android Code Editor. is free software: you can redistribute it and/or modify
4+
* Android Code Editor is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* Android Code Editor. is distributed in the hope that it will be useful,
9+
* Android Code Editor is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
17+
1718
package android.code.editor;
1819

1920
import android.app.AlarmManager;
Lines changed: 43 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
/*
22
* This file is part of Android Code Editor.
33
*
4-
* Android Code Editor. is free software: you can redistribute it and/or modify
4+
* Android Code Editor is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* Android Code Editor. is distributed in the hope that it will be useful,
9+
* Android Code Editor is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
17+
1718
package android.code.editor.activity;
1819

1920
import android.code.editor.ui.MaterialColorHelper;
@@ -23,50 +24,52 @@
2324
import com.google.android.material.color.DynamicColors;
2425

2526
public class BaseActivity extends AppCompatActivity {
26-
public int theme;
27+
public int theme;
2728

28-
@Override
29-
protected void onCreate(Bundle savedInstanceState) {
30-
super.onCreate(savedInstanceState);
31-
if (!DynamicColors.isDynamicColorAvailable()) {
32-
theme = MaterialColorHelper.getCurrentTheme(this);
33-
MaterialColorHelper.setUpTheme(this);
29+
@Override
30+
protected void onCreate(Bundle savedInstanceState) {
31+
super.onCreate(savedInstanceState);
32+
if (!DynamicColors.isDynamicColorAvailable()) {
33+
theme = MaterialColorHelper.getCurrentTheme(this);
34+
MaterialColorHelper.setUpTheme(this);
35+
}
36+
refreshThemeStatusIfRequired();
3437
}
35-
refreshThemeStatusIfRequired();
36-
}
37-
38-
@Override
39-
protected void onResume() {
40-
super.onResume();
41-
refreshThemeColorStatusIfRequired();
42-
refreshThemeStatusIfRequired();
43-
}
4438

45-
public void refreshThemeColorStatusIfRequired() {
46-
if (!DynamicColors.isDynamicColorAvailable()) {
47-
if (MaterialColorHelper.getCurrentTheme(this) != theme) {
48-
recreate();
49-
}
39+
@Override
40+
protected void onResume() {
41+
super.onResume();
42+
refreshThemeColorStatusIfRequired();
43+
refreshThemeStatusIfRequired();
5044
}
51-
}
5245

53-
public void refreshThemeStatusIfRequired() {
54-
switch (SettingActivity.getThemeTypeInInt(this)) {
55-
case 0:
56-
if (AppCompatDelegate.getDefaultNightMode() != AppCompatDelegate.MODE_NIGHT_NO) {
57-
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
46+
public void refreshThemeColorStatusIfRequired() {
47+
if (!DynamicColors.isDynamicColorAvailable()) {
48+
if (MaterialColorHelper.getCurrentTheme(this) != theme) {
49+
recreate();
50+
}
5851
}
59-
break;
60-
case 1:
61-
if (AppCompatDelegate.getDefaultNightMode() != AppCompatDelegate.MODE_NIGHT_YES) {
62-
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
63-
}
64-
break;
65-
case 2:
66-
if (AppCompatDelegate.getDefaultNightMode() != AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM) {
67-
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
52+
}
53+
54+
public void refreshThemeStatusIfRequired() {
55+
switch (SettingActivity.getThemeTypeInInt(this)) {
56+
case 0:
57+
if (AppCompatDelegate.getDefaultNightMode() != AppCompatDelegate.MODE_NIGHT_NO) {
58+
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
59+
}
60+
break;
61+
case 1:
62+
if (AppCompatDelegate.getDefaultNightMode() != AppCompatDelegate.MODE_NIGHT_YES) {
63+
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
64+
}
65+
break;
66+
case 2:
67+
if (AppCompatDelegate.getDefaultNightMode()
68+
!= AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM) {
69+
AppCompatDelegate.setDefaultNightMode(
70+
AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
71+
}
72+
break;
6873
}
69-
break;
7074
}
71-
}
7275
}

app/src/main/java/android/code/editor/activity/CodeEditorActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
/*
22
* This file is part of Android Code Editor.
33
*
4-
* Android Code Editor. is free software: you can redistribute it and/or modify
4+
* Android Code Editor is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* Android Code Editor. is distributed in the hope that it will be useful,
9+
* Android Code Editor is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
17+
1718
package android.code.editor.activity;
1819

1920
import android.code.editor.R;

app/src/main/java/android/code/editor/activity/ContributorsActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
/*
22
* This file is part of Android Code Editor.
33
*
4-
* Android Code Editor. is free software: you can redistribute it and/or modify
4+
* Android Code Editor is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* Android Code Editor. is distributed in the hope that it will be useful,
9+
* Android Code Editor is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
17+
1718
package android.code.editor.activity;
1819

1920
import android.code.editor.R;

app/src/main/java/android/code/editor/activity/DebugActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
/*
22
* This file is part of Android Code Editor.
33
*
4-
* Android Code Editor. is free software: you can redistribute it and/or modify
4+
* Android Code Editor is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.
88
*
9-
* Android Code Editor. is distributed in the hope that it will be useful,
9+
* Android Code Editor is distributed in the hope that it will be useful,
1010
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1111
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
* GNU General Public License for more details.
1313
*
1414
* You should have received a copy of the GNU General Public License
1515
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
1616
*/
17+
1718
package android.code.editor.activity;
1819

1920
import android.code.editor.R;

0 commit comments

Comments
 (0)