mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 16:47:14 -04:00
Merge branch 'v3_openjdk' of https://github.com/PojavLauncherTeam/PojavLauncher into v3_openjdk
This commit is contained in:
commit
b3107c70fd
@ -61,14 +61,14 @@ dependencies {
|
||||
implementation 'javax.annotation:javax.annotation-api:1.3.2'
|
||||
implementation 'commons-codec:commons-codec:1.14'
|
||||
implementation 'com.wu-man:android-bsf-api:3.1.3'
|
||||
implementation 'com.android.support:support-v4:26.0.0'
|
||||
implementation 'com.android.support:preference-v7:26.0.0'
|
||||
implementation 'com.android.support:appcompat-v7:26.0.0'
|
||||
implementation 'com.android.support:preference-v14:26.0.0'
|
||||
implementation 'com.android.support:design:26.0.0'
|
||||
implementation 'com.android.support:support-annotations:26.0.0'
|
||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
||||
implementation 'androidx.preference:preference:1.0.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.0.0'
|
||||
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
|
||||
implementation 'com.google.android.material:material:1.0.0'
|
||||
implementation 'androidx.annotation:annotation:1.0.0'
|
||||
// implementation 'androidx.browser:browser:1.0.0'
|
||||
implementation 'com.android.support:customtabs:25.2.0'
|
||||
implementation 'androidx.browser:browser:1.0.0'
|
||||
|
||||
// implementation 'com.intuit.sdp:sdp-android:1.0.5'
|
||||
// implementation 'com.intuit.ssp:ssp-android:1.0.5'
|
||||
|
@ -16,14 +16,15 @@
|
||||
|
||||
package android.support.design.widget;
|
||||
|
||||
import static android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP;
|
||||
import static android.support.v4.view.ViewPager.SCROLL_STATE_DRAGGING;
|
||||
import static android.support.v4.view.ViewPager.SCROLL_STATE_IDLE;
|
||||
import static android.support.v4.view.ViewPager.SCROLL_STATE_SETTLING;
|
||||
import static androidx.annotation.RestrictTo.Scope.LIBRARY_GROUP;
|
||||
import static androidx.viewpager.widget.ViewPager.SCROLL_STATE_DRAGGING;
|
||||
import static androidx.viewpager.widget.ViewPager.SCROLL_STATE_IDLE;
|
||||
import static androidx.viewpager.widget.ViewPager.SCROLL_STATE_SETTLING;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.Resources;
|
||||
@ -33,26 +34,29 @@ import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.support.annotation.ColorInt;
|
||||
import android.support.annotation.DrawableRes;
|
||||
import android.support.annotation.IntDef;
|
||||
import android.support.annotation.LayoutRes;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.annotation.RestrictTo;
|
||||
import android.support.annotation.StringRes;
|
||||
import android.support.design.R;
|
||||
import android.support.design.widget.*;
|
||||
import android.support.v4.util.Pools;
|
||||
import android.support.v4.view.GravityCompat;
|
||||
import android.support.v4.view.PagerAdapter;
|
||||
import android.support.v4.view.PointerIconCompat;
|
||||
import android.support.v4.view.ViewCompat;
|
||||
import android.support.v4.view.ViewPager;
|
||||
import android.support.v4.widget.TextViewCompat;
|
||||
import android.support.v7.app.ActionBar;
|
||||
import android.support.v7.content.res.AppCompatResources;
|
||||
import android.support.v7.widget.TooltipCompat;
|
||||
import androidx.annotation.ColorInt;
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.IntDef;
|
||||
import androidx.annotation.LayoutRes;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.annotation.RestrictTo;
|
||||
import androidx.annotation.StringRes;
|
||||
import com.google.android.material.R;
|
||||
|
||||
import androidx.core.util.Pools;
|
||||
import androidx.core.view.GravityCompat;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentManager;
|
||||
import androidx.fragment.app.FragmentPagerAdapter;
|
||||
import androidx.viewpager.widget.PagerAdapter;
|
||||
import androidx.core.view.PointerIconCompat;
|
||||
import androidx.core.view.ViewCompat;
|
||||
import androidx.viewpager.widget.ViewPager;
|
||||
import androidx.core.widget.TextViewCompat;
|
||||
import androidx.appcompat.app.ActionBar;
|
||||
import androidx.appcompat.content.res.AppCompatResources;
|
||||
import androidx.appcompat.widget.TooltipCompat;
|
||||
import android.text.Layout;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
@ -76,7 +80,11 @@ import java.lang.ref.WeakReference;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.*;
|
||||
import android.support.v4.app.*;
|
||||
import androidx.core.app.*;
|
||||
|
||||
import com.google.android.material.animation.AnimationUtils;
|
||||
import com.google.android.material.tabs.TabItem;
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
|
||||
/**
|
||||
* VerticalTabLayout provides a vertical layout to display tabs.
|
||||
@ -114,7 +122,7 @@ import android.support.v4.app.*;
|
||||
*
|
||||
* <h3>ViewPager integration</h3>
|
||||
* <p>
|
||||
* If you're using a {@link android.support.v4.view.ViewPager} together
|
||||
* If you're using a {@link ViewPager} together
|
||||
* with this layout, you can call {@link #setupWithViewPager(ViewPager)} to link the two together.
|
||||
* This layout will be automatically populated from the {@link PagerAdapter}'s page titles.</p>
|
||||
*
|
||||
@ -299,7 +307,7 @@ public class VerticalTabLayout extends LinearLayout {
|
||||
public VerticalTabLayout(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
|
||||
ThemeUtils.checkAppCompatTheme(context);
|
||||
//ndroidx.appcompat.widget.ThemeUtils.checkAppCompatTheme(context);
|
||||
|
||||
setOrientation(VERTICAL);
|
||||
|
||||
@ -340,12 +348,12 @@ public class VerticalTabLayout extends LinearLayout {
|
||||
|
||||
// Text colors/sizes come from the text appearance first
|
||||
final TypedArray ta = context.obtainStyledAttributes(mTabTextAppearance,
|
||||
android.support.v7.appcompat.R.styleable.TextAppearance);
|
||||
androidx.appcompat.R.styleable.TextAppearance);
|
||||
try {
|
||||
mTabTextSize = ta.getDimensionPixelSize(
|
||||
android.support.v7.appcompat.R.styleable.TextAppearance_android_textSize, 0);
|
||||
androidx.appcompat.R.styleable.TextAppearance_android_textSize, 0);
|
||||
mTabTextColors = ta.getColorStateList(
|
||||
android.support.v7.appcompat.R.styleable.TextAppearance_android_textColor);
|
||||
androidx.appcompat.R.styleable.TextAppearance_android_textColor);
|
||||
} finally {
|
||||
ta.recycle();
|
||||
}
|
||||
@ -406,7 +414,7 @@ public class VerticalTabLayout extends LinearLayout {
|
||||
|
||||
/**
|
||||
* Set the scroll position of the tabs. This is useful for when the tabs are being displayed as
|
||||
* part of a scrolling container such as {@link android.support.v4.view.ViewPager}.
|
||||
* part of a scrolling container such as {@link ViewPager}.
|
||||
* <p>
|
||||
* Calling this method does not update the selected tab, it is only used for drawing purposes.
|
||||
*
|
||||
@ -518,15 +526,16 @@ public class VerticalTabLayout extends LinearLayout {
|
||||
}
|
||||
|
||||
private void addTabFromItemView(@NonNull TabItem item) {
|
||||
|
||||
final Tab tab = newTab();
|
||||
if (item.mText != null) {
|
||||
tab.setText(item.mText);
|
||||
if (item.text != null) {
|
||||
tab.setText(item.text);
|
||||
}
|
||||
if (item.mIcon != null) {
|
||||
tab.setIcon(item.mIcon);
|
||||
if (item.icon != null) {
|
||||
tab.setIcon(item.icon);
|
||||
}
|
||||
if (item.mCustomLayout != 0) {
|
||||
tab.setCustomView(item.mCustomLayout);
|
||||
if (item.customLayout != 0) {
|
||||
tab.setCustomView(item.customLayout);
|
||||
}
|
||||
if (!TextUtils.isEmpty(item.getContentDescription())) {
|
||||
tab.setContentDescription(item.getContentDescription());
|
||||
@ -696,7 +705,7 @@ public class VerticalTabLayout extends LinearLayout {
|
||||
* <li>{@link #MODE_SCROLLABLE}: Scrollable tabs display a subset of tabs at any given moment,
|
||||
* and can contain longer tab labels and a larger number of tabs. They are best used for
|
||||
* browsing contexts in touch interfaces when users don’t need to directly compare the tab
|
||||
* labels. This mode is commonly used with a {@link android.support.v4.view.ViewPager}.</li>
|
||||
* labels. This mode is commonly used with a {@link ViewPager}.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param mode one of {@link #MODE_FIXED} or {@link #MODE_SCROLLABLE}.
|
||||
@ -2056,6 +2065,7 @@ public class VerticalTabLayout extends LinearLayout {
|
||||
animator.setDuration(duration);
|
||||
animator.setFloatValues(0, 1);
|
||||
animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
|
||||
@SuppressLint("RestrictedApi")
|
||||
@Override
|
||||
public void onAnimationUpdate(ValueAnimator animator) {
|
||||
final float fraction = animator.getAnimatedFraction();
|
||||
|
@ -2,13 +2,10 @@ package com.kdt.mcgui.app;
|
||||
|
||||
import android.content.pm.*;
|
||||
import android.os.*;
|
||||
import android.support.v7.app.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
import java.util.*;
|
||||
import android.content.*;
|
||||
import com.kdt.mcgui.*;
|
||||
|
||||
public class MineActivity extends BaseActivity implements View.OnClickListener
|
||||
{
|
||||
@ -22,6 +19,7 @@ public class MineActivity extends BaseActivity implements View.OnClickListener
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
this.onCreate(savedInstanceState, true);
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,13 @@
|
||||
package com.kdt.mcgui.app;
|
||||
|
||||
import android.support.v7.app.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import android.os.*;
|
||||
import android.support.v4.app.*;
|
||||
import androidx.core.app.*;
|
||||
import android.widget.*;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentTransaction;
|
||||
|
||||
public class MinePrefActivity extends MineActivity
|
||||
{
|
||||
@Override
|
||||
|
@ -19,13 +19,11 @@ package com.kdt.mcgui.pref;
|
||||
import android.content.*;
|
||||
import android.content.res.*;
|
||||
import android.os.*;
|
||||
import android.support.v7.preference.*;
|
||||
import androidx.preference.*;
|
||||
import android.util.*;
|
||||
import android.view.*;
|
||||
import android.view.View.*;
|
||||
import android.widget.*;
|
||||
import android.widget.SeekBar.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
|
||||
import android.view.View.BaseSavedState;
|
||||
import net.kdt.pojavlaunch.R;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.kdt.pickafile;
|
||||
|
||||
import android.support.v7.app.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import android.content.*;
|
||||
import android.util.*;
|
||||
import android.view.*;
|
||||
|
@ -2,7 +2,7 @@ package net.kdt.pojavlaunch;
|
||||
|
||||
import android.content.*;
|
||||
import android.os.*;
|
||||
import android.support.v7.app.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
|
||||
public class BaseActivity extends AppCompatActivity
|
||||
|
@ -2,7 +2,7 @@ package net.kdt.pojavlaunch;
|
||||
|
||||
import android.app.*;
|
||||
import android.content.*;
|
||||
import android.support.v7.app.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import android.text.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
@ -12,7 +12,7 @@ import net.kdt.pojavlaunch.fragments.*;
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
import net.kdt.pojavlaunch.tasks.*;
|
||||
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
|
||||
public abstract class BaseLauncherActivity extends BaseActivity {
|
||||
public Button mPlayButton;
|
||||
@ -160,23 +160,26 @@ public abstract class BaseLauncherActivity extends BaseActivity {
|
||||
@Override
|
||||
protected void onPostResume() {
|
||||
super.onPostResume();
|
||||
System.out.println("call to onPostResume");
|
||||
Tools.updateWindowSize(this);
|
||||
|
||||
System.out.println("call to onPostResume; E");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume(){
|
||||
super.onResume();
|
||||
System.out.println("call to onResume");
|
||||
final int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
|
||||
final View decorView = getWindow().getDecorView();
|
||||
decorView.setSystemUiVisibility(uiOptions);
|
||||
System.out.println("call to onResume; E");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResumeFragments() {
|
||||
super.onResumeFragments();
|
||||
new RefreshVersionListTask(this).execute();
|
||||
|
||||
System.out.println("call to onResumeFragments");
|
||||
try{
|
||||
final ProgressDialog barrier = new ProgressDialog(this);
|
||||
barrier.setMessage(getString(R.string.global_waiting));
|
||||
@ -219,11 +222,12 @@ public abstract class BaseLauncherActivity extends BaseActivity {
|
||||
if(CrashFragment.isNewCrash(lastCrashFile) || !mCrashView.getLastCrash().isEmpty()){
|
||||
mCrashView.resetCrashLog = false;
|
||||
selectTabPage(2);
|
||||
} else throw new Exception();
|
||||
} /*else throw new Exception();*/
|
||||
} catch(Throwable e) {
|
||||
e.printStackTrace();
|
||||
// selectTabPage(tabLayout.getSelectedTabPosition());
|
||||
}
|
||||
System.out.println("call to onResumeFragments; E");
|
||||
}
|
||||
|
||||
// Catching touch exception
|
||||
|
@ -4,18 +4,22 @@ import android.app.*;
|
||||
import android.content.*;
|
||||
import android.graphics.*;
|
||||
import android.os.*;
|
||||
import android.support.design.widget.*;
|
||||
import android.support.v4.widget.*;
|
||||
|
||||
import androidx.core.widget.*;
|
||||
import android.util.*;
|
||||
import android.view.*;
|
||||
import android.view.View.*;
|
||||
import android.view.inputmethod.*;
|
||||
import android.widget.*;
|
||||
|
||||
import androidx.drawerlayout.widget.DrawerLayout;
|
||||
|
||||
import com.google.android.material.navigation.NavigationView;
|
||||
import com.kdt.pointer.*;
|
||||
import java.io.*;
|
||||
import java.lang.reflect.*;
|
||||
import java.util.*;
|
||||
import net.kdt.pojavlaunch.customcontrols.*;
|
||||
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
import org.lwjgl.glfw.*;
|
||||
|
@ -2,16 +2,19 @@ package net.kdt.pojavlaunch;
|
||||
|
||||
import android.content.*;
|
||||
import android.os.*;
|
||||
import android.support.design.widget.*;
|
||||
import android.support.v4.widget.*;
|
||||
import android.support.v7.app.*;
|
||||
import android.support.v7.preference.*;
|
||||
|
||||
import androidx.core.widget.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import androidx.preference.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import com.google.gson.*;
|
||||
|
||||
import androidx.drawerlayout.widget.DrawerLayout;
|
||||
|
||||
import com.google.android.material.navigation.NavigationView;
|
||||
import com.kdt.pickafile.*;
|
||||
import java.io.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
import net.kdt.pojavlaunch.customcontrols.*;
|
||||
|
||||
|
@ -2,7 +2,7 @@ package net.kdt.pojavlaunch;
|
||||
|
||||
import android.content.*;
|
||||
import android.net.*;
|
||||
import android.support.customtabs.*;
|
||||
import androidx.browser.customtabs.*;
|
||||
// import androidx.browser.customtabs.*;
|
||||
|
||||
public class CustomTabs {
|
||||
|
@ -3,9 +3,9 @@ package net.kdt.pojavlaunch;
|
||||
import android.app.*;
|
||||
import android.content.*;
|
||||
import android.os.*;
|
||||
import android.support.v7.app.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import android.util.*;
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
|
||||
public class FatalErrorActivity extends BaseActivity
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ package net.kdt.pojavlaunch;
|
||||
|
||||
import android.graphics.*;
|
||||
import android.os.*;
|
||||
import android.support.v7.app.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import android.util.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
@ -12,7 +12,6 @@ import net.kdt.pojavlaunch.installers.*;
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
import org.lwjgl.glfw.*;
|
||||
import android.content.*;
|
||||
import android.system.*;
|
||||
|
||||
public class JavaGUILauncherActivity extends LoggableActivity {
|
||||
private AWTCanvasView mTextureView;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package net.kdt.pojavlaunch;
|
||||
|
||||
import android.support.v7.app.*;
|
||||
import androidx.appcompat.app.*;
|
||||
|
||||
public abstract class LoggableActivity extends BaseActivity {
|
||||
public void appendToLog(String text) {
|
||||
|
@ -1,35 +1,25 @@
|
||||
package net.kdt.pojavlaunch;
|
||||
|
||||
import android.content.*;
|
||||
import android.graphics.*;
|
||||
import android.os.*;
|
||||
import android.support.design.widget.*;
|
||||
import android.support.v4.app.*;
|
||||
import android.support.v4.view.*;
|
||||
import android.support.v7.app.*;
|
||||
import android.text.*;
|
||||
import android.util.*;
|
||||
|
||||
import androidx.core.app.*;
|
||||
import androidx.core.view.*;
|
||||
import androidx.appcompat.app.*;
|
||||
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import android.widget.AdapterView.*;
|
||||
import com.google.gson.*;
|
||||
import com.kdt.pickafile.*;
|
||||
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
|
||||
import java.io.*;
|
||||
import java.nio.charset.*;
|
||||
import java.util.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
|
||||
import net.kdt.pojavlaunch.fragments.*;
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
import net.kdt.pojavlaunch.value.*;
|
||||
|
||||
import org.lwjgl.glfw.*;
|
||||
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v4.app.FragmentManager;
|
||||
import android.app.*;
|
||||
import org.apache.commons.io.*;
|
||||
import net.kdt.pojavlaunch.tasks.*;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.viewpager.widget.ViewPager;
|
||||
|
||||
import android.support.design.widget.VerticalTabLayout.*;
|
||||
|
||||
|
@ -5,13 +5,13 @@ import android.content.*;
|
||||
import android.content.pm.*;
|
||||
import android.content.res.*;
|
||||
import android.os.*;
|
||||
import android.support.v4.app.*;
|
||||
import android.support.v7.preference.*;
|
||||
import androidx.core.app.*;
|
||||
import androidx.preference.*;
|
||||
import android.util.*;
|
||||
import java.io.*;
|
||||
import java.text.*;
|
||||
import java.util.*;
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
|
||||
public class PojavApplication extends Application
|
||||
|
@ -1,33 +1,25 @@
|
||||
package net.kdt.pojavlaunch;
|
||||
|
||||
import android.app.*;
|
||||
import android.content.*;
|
||||
import android.graphics.*;
|
||||
import android.os.*;
|
||||
import android.support.design.widget.*;
|
||||
import android.support.design.widget.VerticalTabLayout.*;
|
||||
import android.support.v4.view.*;
|
||||
import android.support.v7.app.*;
|
||||
import android.text.*;
|
||||
import androidx.core.view.*;
|
||||
import androidx.appcompat.app.*;
|
||||
|
||||
import android.util.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import android.widget.AdapterView.*;
|
||||
import com.google.gson.*;
|
||||
import com.kdt.pickafile.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.nio.charset.*;
|
||||
import java.util.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
|
||||
import net.kdt.pojavlaunch.fragments.*;
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
import net.kdt.pojavlaunch.value.*;
|
||||
import org.apache.commons.io.*;
|
||||
|
||||
import org.lwjgl.glfw.*;
|
||||
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import net.kdt.pojavlaunch.tasks.*;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
import androidx.viewpager.widget.ViewPager;
|
||||
//import android.support.v7.view.menu.*;
|
||||
//import net.zhuoweizhang.boardwalk.downloader.*;
|
||||
|
||||
|
@ -6,10 +6,11 @@ import android.content.pm.*;
|
||||
import android.content.res.*;
|
||||
import android.net.*;
|
||||
import android.os.*;
|
||||
import android.support.annotation.*;
|
||||
import android.support.v4.app.*;
|
||||
import android.support.v4.content.*;
|
||||
import android.support.v7.app.*;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.core.app.*;
|
||||
import androidx.core.content.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import android.system.*;
|
||||
import android.text.*;
|
||||
import android.text.style.*;
|
||||
|
@ -21,17 +21,14 @@ package net.kdt.pojavlaunch.customcontrols.handleview;
|
||||
|
||||
import android.content.*;
|
||||
import android.view.*;
|
||||
import android.view.View.*;
|
||||
import android.view.ViewGroup.*;
|
||||
import android.widget.*;
|
||||
import java.lang.reflect.*;
|
||||
|
||||
import net.kdt.pojavlaunch.*;
|
||||
|
||||
import android.view.View.OnClickListener;
|
||||
import net.kdt.pojavlaunch.customcontrols.*;
|
||||
import android.support.v7.app.*;
|
||||
import android.content.res.*;
|
||||
import net.objecthunter.exp4j.*;
|
||||
import androidx.appcompat.app.*;
|
||||
|
||||
public class ActionPopupWindow extends PinnedPopupWindow implements OnClickListener {
|
||||
private TextView mEditTextView;
|
||||
|
@ -1,15 +1,18 @@
|
||||
package net.kdt.pojavlaunch.fragments;
|
||||
|
||||
import android.os.*;
|
||||
import android.support.annotation.*;
|
||||
import android.support.v4.app.*;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.app.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import java.io.*;
|
||||
|
||||
import net.kdt.pojavlaunch.*;
|
||||
import android.util.*;
|
||||
|
||||
import android.graphics.*;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
public class ConsoleFragment extends Fragment
|
||||
{
|
||||
public TextView consoleView;
|
||||
|
@ -1,16 +1,18 @@
|
||||
package net.kdt.pojavlaunch.fragments;
|
||||
|
||||
import android.os.*;
|
||||
import android.support.annotation.*;
|
||||
import android.support.v4.app.*;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.app.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import java.io.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
import android.util.*;
|
||||
|
||||
import android.graphics.*;
|
||||
import android.content.*;
|
||||
import android.support.v4.os.*;
|
||||
|
||||
import androidx.core.os.*;
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
public class CrashFragment extends Fragment
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
package net.kdt.pojavlaunch.fragments;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.app.Fragment;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.LayoutInflater;
|
||||
|
@ -1,9 +1,8 @@
|
||||
package net.kdt.pojavlaunch.prefs;
|
||||
|
||||
import android.os.*;
|
||||
import android.support.v4.app.*;
|
||||
import android.support.v7.preference.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
import androidx.core.app.*;
|
||||
import androidx.preference.*;
|
||||
|
||||
import net.kdt.pojavlaunch.R;
|
||||
import android.content.*;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package net.kdt.pojavlaunch.prefs;
|
||||
|
||||
import android.content.*;
|
||||
import android.support.v7.app.*;
|
||||
import android.support.v7.preference.*;
|
||||
import androidx.appcompat.app.*;
|
||||
import androidx.preference.*;
|
||||
import android.util.*;
|
||||
import android.widget.*;
|
||||
import java.io.*;
|
||||
|
@ -1,18 +1,18 @@
|
||||
package net.kdt.pojavlaunch.tasks;
|
||||
|
||||
import android.os.*;
|
||||
import android.support.v7.widget.*;
|
||||
import androidx.appcompat.widget.*;
|
||||
import android.view.*;
|
||||
import android.widget.*;
|
||||
import android.widget.AdapterView.*;
|
||||
import com.google.gson.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
import net.kdt.pojavlaunch.*;
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
import net.kdt.pojavlaunch.utils.*;
|
||||
|
||||
import android.support.v7.widget.PopupMenu;
|
||||
import androidx.appcompat.widget.PopupMenu;
|
||||
|
||||
public class RefreshVersionListTask extends AsyncTask<Void, Void, ArrayList<String>>
|
||||
{
|
||||
|
@ -2,9 +2,11 @@ package net.kdt.pojavlaunch.utils;
|
||||
|
||||
import android.app.*;
|
||||
import android.content.*;
|
||||
import android.support.annotation.*;
|
||||
import android.system.*;
|
||||
import android.util.*;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.oracle.dalvik.*;
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
@ -2,7 +2,7 @@ package net.kdt.pojavlaunch.utils;
|
||||
|
||||
import android.content.*;
|
||||
import android.content.res.*;
|
||||
import android.support.v7.preference.*;
|
||||
import androidx.preference.*;
|
||||
import java.util.*;
|
||||
import net.kdt.pojavlaunch.prefs.*;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.v4.widget.DrawerLayout
|
||||
<androidx.drawerlayout.widget.DrawerLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_height="match_parent"
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<android.support.design.widget.NavigationView
|
||||
<com.google.android.material.navigation.NavigationView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="right"
|
||||
@ -34,5 +34,5 @@
|
||||
app:menu="@menu/menu_customctrl"
|
||||
android:id="@+id/customctrl_navigation_view"/>
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
</androidx.drawerlayout.widget.DrawerLayout>
|
||||
|
||||
|
@ -18,12 +18,12 @@
|
||||
android:layout_weight="1.0"
|
||||
android:orientation="vertical">
|
||||
|
||||
<android.support.design.widget.TabLayout
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/launchermainTabLayout"/>
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
|
@ -59,7 +59,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_weight="1.0">
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/launchermainTabPager"
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.v4.widget.DrawerLayout
|
||||
<androidx.drawerlayout.widget.DrawerLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_height="match_parent"
|
||||
@ -102,7 +102,7 @@
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<android.support.design.widget.NavigationView
|
||||
<com.google.android.material.navigation.NavigationView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="right"
|
||||
@ -110,5 +110,5 @@
|
||||
app:menu="@menu/menu_runopt"
|
||||
android:id="@+id/main_navigation_view"/>
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
</androidx.drawerlayout.widget.DrawerLayout>
|
||||
|
||||
|
@ -1,21 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<android.support.v7.preference.PreferenceScreen
|
||||
<androidx.preference.PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.chom/apk/res-auto">
|
||||
|
||||
<android.support.v7.preference.PreferenceCategory
|
||||
<androidx.preference.PreferenceCategory
|
||||
android:title="@string/mcl_setting_category_general">
|
||||
|
||||
<net.kdt.pojavlaunch.prefs.UninstallJREDialogPreference
|
||||
android:title="@string/mcl_setting_title_uninstalljre"
|
||||
android:summary="@string/mcl_setting_subtitle_uninstalljre" />
|
||||
|
||||
<android.support.v7.preference.SeekBarPreference
|
||||
<androidx.preference.SeekBarPreference
|
||||
android:key="timeLongPressTrigger"
|
||||
android:title="@string/mcl_setting_title_longpresstrigger"
|
||||
android:summary="@string/mcl_setting_subtitle_longpresstrigger" />
|
||||
|
||||
<android.support.v7.preference.SwitchPreferenceCompat
|
||||
<androidx.preference.SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
android:key="freeform"
|
||||
android:title="@string/mcl_setting_title_freeform"
|
||||
@ -28,46 +28,46 @@
|
||||
android:dialogTitle="@string/mcl_setting_title_javaargs"
|
||||
android:singleLine="true"/>
|
||||
|
||||
</android.support.v7.preference.PreferenceCategory>
|
||||
</androidx.preference.PreferenceCategory>
|
||||
|
||||
<android.support.v7.preference.PreferenceCategory
|
||||
<androidx.preference.PreferenceCategory
|
||||
android:title="@string/mcl_setting_category_scaling">
|
||||
|
||||
<android.support.v7.preference.SeekBarPreference
|
||||
<androidx.preference.SeekBarPreference
|
||||
android:key="buttonscale"
|
||||
android:title="@string/mcl_setting_title_buttonscale"
|
||||
android:summary="@string/mcl_setting_subtitle_buttonscale" />
|
||||
|
||||
<android.support.v7.preference.SeekBarPreference
|
||||
<androidx.preference.SeekBarPreference
|
||||
android:key="mousescale"
|
||||
android:title="@string/mcl_setting_title_mousescale"
|
||||
android:summary="@string/mcl_setting_subtitle_mousescale" />
|
||||
|
||||
</android.support.v7.preference.PreferenceCategory>
|
||||
</androidx.preference.PreferenceCategory>
|
||||
|
||||
<android.support.v7.preference.PreferenceCategory
|
||||
<androidx.preference.PreferenceCategory
|
||||
android:title="@string/mcl_setting_category_veroption">
|
||||
|
||||
<android.support.v7.preference.CheckBoxPreference
|
||||
<androidx.preference.CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="vertype_release"
|
||||
android:title="@string/mcl_setting_veroption_release" />
|
||||
|
||||
<android.support.v7.preference.CheckBoxPreference
|
||||
<androidx.preference.CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="vertype_snapshot"
|
||||
android:title="@string/mcl_setting_veroption_snapshot" />
|
||||
|
||||
<android.support.v7.preference.CheckBoxPreference
|
||||
<androidx.preference.CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="vertype_oldalpha"
|
||||
android:title="@string/mcl_setting_veroption_oldalpha" />
|
||||
|
||||
<android.support.v7.preference.CheckBoxPreference
|
||||
<androidx.preference.CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="vertype_oldbeta"
|
||||
android:title="@string/mcl_setting_veroption_oldbeta" />
|
||||
|
||||
</android.support.v7.preference.PreferenceCategory>
|
||||
</androidx.preference.PreferenceCategory>
|
||||
|
||||
</android.support.v7.preference.PreferenceScreen>
|
||||
</androidx.preference.PreferenceScreen>
|
||||
|
2
gradle.properties
Normal file
2
gradle.properties
Normal file
@ -0,0 +1,2 @@
|
||||
android.enableJetifier=true
|
||||
android.useAndroidX=true
|
0
scripts/languagelist_updater.sh
Normal file → Executable file
0
scripts/languagelist_updater.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user