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

Commit 77ff10a9 authored by Alexander Martinz's avatar Alexander Martinz Committed by Michael Bestas
Browse files

Remove some more private API usages



Change-Id: I4132779250fe955a7d0753167bb3921fa751c8aa
Signed-off-by: Alexander Martinz's avatarAlexander Martinz <amartinz@shiftphones.com>
parent 8aabaeef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@
package org.lineageos.eleven;

import android.Manifest.permission;
import android.annotation.NonNull;
import android.annotation.SuppressLint;
import android.app.AlarmManager;
import android.app.Notification;
@@ -57,6 +56,7 @@ import android.os.SystemClock;
import android.provider.MediaStore;
import android.provider.MediaStore.Audio.AlbumColumns;
import android.provider.MediaStore.Audio.AudioColumns;
import android.support.annotation.NonNull;
import android.support.v4.os.BuildCompat;
import android.text.TextUtils;
import android.util.Log;
+0 −1
Original line number Diff line number Diff line
@@ -345,7 +345,6 @@ public class PlaylistWorkerTask extends BitmapWorkerTask<Void, Void, TransitionD
                combinedCanvas.drawBitmap(loadedBitmaps.get(3), null,
                        new Rect(width / 2, height / 2, width, height), null);

                combinedCanvas.release();
                combinedCanvas = null;
                bitmap = combinedBitmap;
            }
+1 −1
Original line number Diff line number Diff line
@@ -1043,7 +1043,7 @@ public class SlidingUpPanelLayout extends ViewGroup {
    @Override
    protected boolean drawChild(Canvas canvas, View child, long drawingTime) {
        boolean result;
        final int save = canvas.save(Canvas.CLIP_SAVE_FLAG);
        final int save = canvas.save();

        if (isSlidingEnabled() && mMainView == child) {
            // Clip against the slider; no sense drawing what will immediately be covered,
+9 −5
Original line number Diff line number Diff line
@@ -89,6 +89,11 @@ public class SearchActivity extends FragmentActivity implements
        LoaderCallbacks<SectionListContainer<SearchResult>>,
        OnScrollListener, OnQueryTextListener, OnItemClickListener, ServiceConnection,
        OnTouchListener {
    /**
     * Intent extra for identifying the search type to filter for
     */
    public static String EXTRA_SEARCH_MODE = "search_mode";

    /**
     * Loading delay of 500ms so we don't flash the screen too much when loading new searches
     */
@@ -308,7 +313,7 @@ public class SearchActivity extends FragmentActivity implements
            mTopLevelSearch = false;

            // get the search type to filter by
            int type = getIntent().getIntExtra(SearchManager.SEARCH_MODE, -1);
            int type = getIntent().getIntExtra(SearchActivity.EXTRA_SEARCH_MODE, -1);
            if (type >= 0 && type < ResultType.values().length) {
                mSearchType = ResultType.values()[type];
            }
@@ -554,11 +559,10 @@ public class SearchActivity extends FragmentActivity implements
     */
    public void setLoading() {
        if (mCurrentState != VisibleState.Loading) {
            if (!mHandler.hasCallbacks(mLoadingRunnable)) {
            mHandler.removeCallbacks(mLoadingRunnable);
            mHandler.postDelayed(mLoadingRunnable, LOADING_DELAY);
        }
    }
    }

    /**
     * Sets the currently visible view
@@ -646,7 +650,7 @@ public class SearchActivity extends FragmentActivity implements
            SearchResult item = mAdapter.getTItem(position - 1);
            Intent intent = new Intent(this, SearchActivity.class);
            intent.putExtra(SearchManager.QUERY, mFilterString);
            intent.putExtra(SearchManager.SEARCH_MODE, item.mType.ordinal());
            intent.putExtra(SearchActivity.EXTRA_SEARCH_MODE, item.mType.ordinal());
            startActivity(intent);
        } else {
            SearchResult item = mAdapter.getTItem(position);
+3 −3
Original line number Diff line number Diff line
@@ -63,10 +63,10 @@ public class LoadingEmptyContainer extends FrameLayout {
    public void showLoading() {
        hideAll();

        if (!mHandler.hasCallbacks(mShowLoadingRunnable)) {
        mHandler.removeCallbacks(mShowLoadingRunnable);

        mHandler.postDelayed(mShowLoadingRunnable, LOADING_DELAY);
    }
    }

    public void showNoResults() {
        mHandler.removeCallbacks(mShowLoadingRunnable);