Fix deprecated codes
This commit is contained in:
parent
fe127d879b
commit
d9b93c0c49
|
|
@ -78,12 +78,6 @@
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".util.NotificationUtil$RebootReceiver"
|
android:name=".util.NotificationUtil$RebootReceiver"
|
||||||
android:exported="false" />
|
android:exported="false" />
|
||||||
<receiver
|
|
||||||
android:name=".receivers.BootReceiver"
|
|
||||||
android:enabled="true"
|
|
||||||
android:exported="true"
|
|
||||||
tools:ignore="ExportedReceiver" />
|
|
||||||
|
|
||||||
<provider
|
<provider
|
||||||
android:name="androidx.core.content.FileProvider"
|
android:name="androidx.core.content.FileProvider"
|
||||||
android:authorities="${applicationId}.fileprovider"
|
android:authorities="${applicationId}.fileprovider"
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import android.content.SharedPreferences;
|
||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
import android.os.Looper;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
|
|
@ -99,7 +100,7 @@ public class App extends Application implements Application.ActivityLifecycleCal
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
uiThread = Thread.currentThread();
|
uiThread = Thread.currentThread();
|
||||||
mainHandler = new Handler();
|
mainHandler = new Handler(Looper.getMainLooper());
|
||||||
|
|
||||||
pref = PreferenceManager.getDefaultSharedPreferences(this);
|
pref = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ package org.meowcat.edxposed.manager.ui.activity;
|
||||||
import android.content.pm.ApplicationInfo;
|
import android.content.pm.ApplicationInfo;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
import android.os.Looper;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
@ -35,7 +36,7 @@ public class BlackListActivity extends BaseActivity implements AppAdapter.Callba
|
||||||
binding.swipeRefreshLayout.setRefreshing(true);
|
binding.swipeRefreshLayout.setRefreshing(true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
private final Handler handler = new Handler();
|
private final Handler handler = new Handler(Looper.getMainLooper());
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import android.net.Uri;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
import android.os.Looper;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
|
|
@ -52,7 +53,7 @@ public class LogsActivity extends BaseActivity {
|
||||||
private final File fileAllLog = new File(Constants.getBaseDir() + "log/all.log");
|
private final File fileAllLog = new File(Constants.getBaseDir() + "log/all.log");
|
||||||
private final File fileAllLogOld = new File(Constants.getBaseDir() + "log/all.log.old");
|
private final File fileAllLogOld = new File(Constants.getBaseDir() + "log/all.log.old");
|
||||||
private LogsAdapter adapter;
|
private LogsAdapter adapter;
|
||||||
private final Handler handler = new Handler();
|
private final Handler handler = new Handler(Looper.getMainLooper());
|
||||||
private ActivityLogsBinding binding;
|
private ActivityLogsBinding binding;
|
||||||
private LinearLayoutManagerFix layoutManager;
|
private LinearLayoutManagerFix layoutManager;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ package org.meowcat.edxposed.manager.ui.activity;
|
||||||
import android.content.pm.ApplicationInfo;
|
import android.content.pm.ApplicationInfo;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
|
import android.os.Looper;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
|
@ -35,7 +36,7 @@ public class ModuleScopeActivity extends BaseActivity implements AppAdapter.Call
|
||||||
binding.swipeRefreshLayout.setRefreshing(true);
|
binding.swipeRefreshLayout.setRefreshing(true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
private final Handler handler = new Handler();
|
private final Handler handler = new Handler(Looper.getMainLooper());
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue