Skip to content

Commit 3383805

Browse files
committed
reformat
1 parent d00c268 commit 3383805

File tree

11 files changed

+27
-22
lines changed

11 files changed

+27
-22
lines changed

CodecMod/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ android {
1313
isCoreLibraryDesugaringEnabled = true
1414
}
1515
}
16+
1617
dependencies {
1718
implementation(libs.androidx.preference)
1819
coreLibraryDesugaring(libs.android.desugarJdkLibs)

CodecMod/src/main/AndroidManifest.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<manifest
3+
xmlns:android="http://schemas.android.com/apk/res/android">
34

45
<application android:label="@string/app_name">
56
<activity
67
android:name=".SettingsActivity"
78
android:exported="true"
89
android:label="@string/title_activity_settings"
9-
android:theme="@style/AppTheme">
10+
android:theme="@style/AppTheme"
11+
>
1012
<intent-filter>
1113
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
1214
<category android:name="android.intent.category.DEFAULT" />
@@ -17,13 +19,15 @@
1719

1820
<meta-data
1921
android:name="xposedmodule"
20-
android:value="true" />
22+
android:value="true"
23+
/>
2124
<meta-data
2225
android:name="xposeddescription"
23-
android:value="@string/description" />
26+
android:value="@string/description"
27+
/>
2428
<meta-data
2529
android:name="xposedminversion"
26-
android:value="93" />
30+
android:value="93"
31+
/>
2732
</application>
28-
2933
</manifest>

CodecMod/src/main/java/com/programminghoch10/CodecMod/CodecStore.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ boolean getCodecPreference(MediaCodecInfoWrapper mediaCodecInfo) {
3737
}
3838

3939
boolean setCodecPreference(MediaCodecInfoWrapper mediaCodecInfo, boolean enabled) {
40-
boolean success = false;
40+
boolean success;
4141
if (REMOVE_DEFAULT_VALUE_FROM_CONFIG && enabled == DEFAULT_VALUE) {
4242
success = sharedPreferences.edit().remove(getKey(mediaCodecInfo)).commit();
4343
} else {
4444
success = sharedPreferences.edit().putBoolean(getKey(mediaCodecInfo), enabled).commit();
4545
}
4646
if (!success)
47-
return success;
47+
return false;
4848
dispatchOnCodecPreferenceChanged(mediaCodecInfo, enabled);
49-
return success;
49+
return true;
5050
}
5151

5252
void registerOnCodecPreferenceChangedListener(MediaCodecInfoWrapper mediaCodecInfo, OnCodecPreferenceChangedListener onCodecPreferenceChangedListener) {
@@ -77,5 +77,4 @@ private static class OnCodecPreferenceChangedListenerMeta {
7777
MediaCodecInfoWrapper mediaCodecInfo;
7878
OnCodecPreferenceChangedListener callback;
7979
}
80-
8180
}

CodecMod/src/main/java/com/programminghoch10/CodecMod/Hook.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,5 @@ protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
8585
}
8686
});
8787
}
88-
8988
}
9089
}

CodecMod/src/main/java/com/programminghoch10/CodecMod/SettingsActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ protected void onCreate(Bundle savedInstanceState) {
3535

3636
public static class SettingsFragment extends PreferenceFragmentCompat {
3737
private static final boolean SHOW_ALIASES = true;
38-
CodecStore codecStore = null;
3938

4039
@Override
4140
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
1+
<LinearLayout
2+
xmlns:android="http://schemas.android.com/apk/res/android"
23
android:layout_width="match_parent"
3-
android:layout_height="match_parent">
4+
android:layout_height="match_parent"
5+
>
46

57
<FrameLayout
68
android:id="@+id/settings"
79
android:layout_width="match_parent"
8-
android:layout_height="match_parent" />
10+
android:layout_height="match_parent"
11+
/>
912
</LinearLayout>
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
43
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault.Settings" />
54
</resources>

CodecMod/src/main/res/values-v35/themes.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
43
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault.Settings">
54
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
65
</style>
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
43
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault" />
54
</resources>
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
1+
<PreferenceScreen
2+
xmlns:app="http://schemas.android.com/apk/res-auto">
23
<PreferenceCategory
34
app:key="category_decoders"
4-
app:title="Decoders" />
5+
app:title="Decoders"
6+
/>
57
<PreferenceCategory
68
app:key="category_encoders"
7-
app:title="Encoders" />
9+
app:title="Encoders"
10+
/>
811
</PreferenceScreen>

0 commit comments

Comments
 (0)