Skip to content

Commit

Permalink
Code refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder-tsys committed May 16, 2023
1 parent 7183f69 commit 5bdfcbb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ protected void onCreate(Bundle savedInstanceState) {

// setup toolbar
setupToolbar();
// showHideDefaultToolbarDivider(true);

updateActionBarTitleAndHomeButtonByString(getString(R.string.drawer_item_notifications));

Expand Down Expand Up @@ -160,11 +159,14 @@ private void setupPushWarning() {
} else {
String pushValue = arbitraryDataProvider.getValue(accountName, PushUtils.KEY_PUSH);

if (pushValue == null || pushValue.isEmpty()) {
//NMC Note -> Need to disable this error message for now as we will configure our
//own push notification server later not now
//once we will configure our server we will uncomment the below code.
/* if (pushValue == null || pushValue.isEmpty()) {
snackbar = Snackbar.make(binding.emptyList.emptyListView,
R.string.push_notifications_temp_error,
Snackbar.LENGTH_INDEFINITE);
}
}*/
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/menu/partial_drawer_entries.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
android:icon="@drawable/nav_recently"
android:orderInCategory="0"
android:title="@string/drawer_item_recently_modified"
android:visible="false"/>
android:visible="true"/>
<item
android:orderInCategory="0"
android:id="@+id/nav_notifications"
Expand Down
8 changes: 7 additions & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@
<!-- Colors -->
<color name="standard_grey">#757575</color>
<color name="actionbar_shadow">#222222</color>
<color name="dark_grey">#101010</color>
<color name="grey_0">#F2F2F2</color>
<color name="grey_10">#E5E5E5</color>
<color name="grey_30">#B2B2B2</color>
<color name="grey_60">#666666</color>
<color name="grey_70">#4C4C4C</color>
<color name="grey_80">#333333</color>
<color name="grey_200">#EEEEEE</color>
<color name="grey_400">#BDBDBD</color>
<color name="grey_600">#666666</color>
<color name="grey_30">#B2B2B2</color>

<!-- standard material color definitions -->

Expand Down

0 comments on commit 5bdfcbb

Please sign in to comment.