Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
machiav3lli committed Jun 4, 2020
1 parent ef37720 commit d1394cf
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
tools:targetApi="q">
<activity
android:name=".activities.IntroActivity"
android:theme="@style/AppTheme.Splash"
android:label="@string/app_name">
android:label="@string/app_name"
android:theme="@style/AppTheme.Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ private void launchMainActivity() {
String backupDirPath = getDefaultBackupDirPath(this);
backupDir = Utils.createBackupDir(this, backupDirPath);
originalList = AppInfoHelper.getPackageInfo(this, backupDir, true,
PreferenceManager.getDefaultSharedPreferences(this)
.getBoolean(Constants.PREFS_ENABLESPECIALBACKUPS, true));
PreferenceManager.getDefaultSharedPreferences(this).getBoolean(Constants.PREFS_ENABLESPECIALBACKUPS, true));
startActivity(new Intent(this, MainActivityX.class));
}

Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/machiav3lli/backup/handler/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,4 @@ public static String getPrefsString(Context context, String key) {
public static void setPrefsString(Context context, String key, String value) {
context.getSharedPreferences(Constants.PREFS_SHARED, Context.MODE_PRIVATE).edit().putString(key, value).apply();
}

}
2 changes: 1 addition & 1 deletion src/main/java/com/machiav3lli/backup/items/AppInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,6 @@ protected AppInfo(Parcel in) {
system = bools[0];
installed = bools[1];
checked = bools[2];
icon = (Bitmap) in.readParcelable(getClass().getClassLoader());
icon = in.readParcelable(getClass().getClassLoader());
}
}
8 changes: 3 additions & 5 deletions src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@
<item name="android:backgroundTint">?backgroundColor</item>
</style>

<style name="AppTheme.PopupTheme" parent="ThemeOverlay.MaterialComponents.Light" />

<style name="AppTheme.PopupTheme.Dark" parent="ThemeOverlay.MaterialComponents.Dark" />
<style name="AppTheme.PopupTheme" parent="ThemeOverlay.MaterialComponents.Dark" />

<style name="Widget.Toolbar" parent="Widget.AppCompat.Toolbar">
<item name="android:background">?android:attr/windowBackground</item>
<item name="android:background">?android:windowBackground</item>
<item name="titleTextAppearance">@style/TextAppearance.Toolbar.Title</item>
<item name="popupTheme">@style/AppTheme.PopupTheme.Dark</item>
<item name="popupTheme">@style/AppTheme.PopupTheme</item>
</style>

<style name="Widget.AppBar" parent="@style/Widget.Design.AppBarLayout">
Expand Down
4 changes: 1 addition & 3 deletions src/main/res/values-notnight/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@

<style name="AppTheme.PopupTheme" parent="ThemeOverlay.MaterialComponents.Light" />

<style name="AppTheme.PopupTheme.Dark" parent="ThemeOverlay.MaterialComponents.Dark" />

<style name="Widget.Toolbar" parent="Widget.AppCompat.Toolbar">
<item name="android:background">?android:windowBackground</item>
<item name="titleTextAppearance">@style/TextAppearance.Toolbar.Title</item>
<item name="popupTheme">@style/AppTheme.PopupTheme.Dark</item>
<item name="popupTheme">@style/AppTheme.PopupTheme</item>
</style>

<style name="Widget.AppBar" parent="@style/Widget.Design.AppBarLayout">
Expand Down
2 changes: 1 addition & 1 deletion src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:key="userPrefs"
android:title="@string/prefs_user"
app:iconSpaceReserved="false">
<ListPreference
<androidx.preference.ListPreference
app:defaultValue="system"
app:entries="@array/themeEntries"
app:entryValues="@array/themeEntryValues"
Expand Down

0 comments on commit d1394cf

Please sign in to comment.