Skip to content

Commit

Permalink
Correctly set dismiss placeholder notif setting on update, new app icons
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijitvalluri committed Dec 18, 2020
1 parent e69daa7 commit 6c7953c
Show file tree
Hide file tree
Showing 20 changed files with 344 additions and 3 deletions.
320 changes: 320 additions & 0 deletions .idea/assetWizardSettings.xml

Large diffs are not rendered by default.

Binary file modified app/release/app-release.apk
Binary file not shown.
1 change: 0 additions & 1 deletion app/release/output.json

This file was deleted.

Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/ic_launcher-web.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

import com.abhijitvalluri.android.fitnotifications.R;
import com.abhijitvalluri.android.fitnotifications.appchoices.store.AppSelectionsStore;
import com.abhijitvalluri.android.fitnotifications.services.NLService;
import com.abhijitvalluri.android.fitnotifications.settings.SettingsActivity;
import com.abhijitvalluri.android.fitnotifications.setup.AppIntroActivity;
import com.abhijitvalluri.android.fitnotifications.utils.Constants;
Expand Down Expand Up @@ -116,6 +117,12 @@ protected void onCreate(Bundle savedInstanceState) {
mPreferences.edit()
.putBoolean(getString(R.string.dismiss_placeholder_notif_key), false).apply();

int delaySeconds = mPreferences.getInt(
getString(R.string.placeholder_dismiss_delay_key),
Constants.DEFAULT_DELAY_SECONDS);
HomeFragment.onPlaceholderNotifSettingUpdated(false, delaySeconds);
NLService.onPlaceholderNotifSettingUpdated(false, delaySeconds);

navDrawer.setCheckedItem(R.id.nav_whats_new);
setTitle(R.string.whats_new);
frag = InfoFragment.newInstance(getString(R.string.whats_new_text));
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108"
android:tint="#FFFFFF">
<group android:scaleX="2.2185"
android:scaleY="2.2185"
android:translateX="27.378"
android:translateY="27.378">
<path
android:fillColor="#ffffff"
android:pathData="M20,2L4,2c-1.1,0 -1.99,0.9 -1.99,2L2,22l4,-4h14c1.1,0 2,-0.9 2,-2L22,4c0,-1.1 -0.9,-2 -2,-2zM9,11L7,11L7,9h2v2zM13,11h-2L11,9h2v2zM17,11h-2L15,9h2v2z"/>
</group>
</vector>
2 changes: 1 addition & 1 deletion app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Binary file modified app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
Binary file not shown.
Binary file modified app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
2 changes: 1 addition & 1 deletion app/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#3F51B5</color>
<color name="ic_launcher_background">#3F51B5</color>
</resources>
File renamed without changes.

0 comments on commit 6c7953c

Please sign in to comment.