Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ebd6ef6 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Revert setWhen change

Some apps have tests that set 0 and validate that it was set.

Test: none -it's a removal of recently added code
Flag: android.app.update_ranking_time
Bug: 330193582
Change-Id: Ie9500f695463e0b74322dfcee956d95da13222aa
parent 6d0e6e4b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -4389,12 +4389,6 @@ public class Notification implements Parcelable
         */
        @NonNull
        public Builder setWhen(long when) {
            if (updateRankingTime()) {
                // don't show a timestamp that's decades old
                if (mN.extras.getBoolean(EXTRA_SHOW_WHEN, true) && when == 0) {
                    return this;
                }
            }
            mN.when = when;
            return this;
        }