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

Commit b83ddefb authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Remove use of deprecated Time class"

am: b3f8696c

Change-Id: Ie6dcfcde7ec223ed83b2d8d33f059924e3a566e9
parents aac7f8e2 b3f8696c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ import android.net.NetworkPolicy;
import android.net.NetworkTemplate;
import android.os.Bundle;
import android.provider.SearchIndexableResource;
import android.text.format.Time;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
@@ -50,6 +49,7 @@ import com.android.settingslib.search.SearchIndexable;

import java.util.ArrayList;
import java.util.List;
import java.util.TimeZone;

@SearchIndexable
public class BillingCycleSettings extends DataUsageBaseFragment implements
@@ -405,7 +405,7 @@ public class BillingCycleSettings extends DataUsageBaseFragment implements
            mCycleDayPicker.clearFocus();

            final int cycleDay = mCycleDayPicker.getValue();
            final String cycleTimezone = new Time().timezone;
            final String cycleTimezone = TimeZone.getDefault().getID();
            editor.setPolicyCycleDay(template, cycleDay, cycleTimezone);
            target.updateDataUsage();
        }