Skip to content

Commit ddfdda5

Browse files
committed
push 1.5.0 for uis7862/uis8581a
1 parent d93032a commit ddfdda5

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Fyt HW OneKey
2-
App to modify the hardware buttons on the FYT (Joying/FunRover/etc.) units.<br>
2+
App to modify the hardware buttons on FYT units (Atoto, Ebilaen, Ekiy, Farcar, Funrover, Idoing, Isudar, Joying, Junsun, Mekede, NaviFly, Sinosmart, T'eyes, Winca, Zhan, etcera) units.<br>
33
This app does not need root!<br>
4-
It should work on all FYT units running on Android 5.1.1 (Sofia), 6.0.1 (Sofia), 8.0 (PX5) and 8.1 (SC9853i),
5-
<br>but NOT on 10.0 (UIS7862).
4+
It should work on all FYT units running on Android 5.1.1 (Sofia), 6.0.1 (Sofia), 8.0 (PX5), 8.1 (SC9853i) and Android 10.0 (uis7862 and uis8581) (and fake Android 11).
65

76
![logo](https://github.com/hvdwolf/FytHWOneKey/blob/master/images/logo.png)
87
## Downloads

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ android {
55
defaultConfig {
66
applicationId "org.hvdw.fythwonekey"
77
minSdkVersion 21
8-
targetSdkVersion 27
8+
targetSdkVersion 29
99
versionCode 15
1010
versionName "1.5.0"
1111
}

app/src/main/java/org/hvdw/fythwonekey/ListInstalledApps.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
import java.util.List;
1717

1818

19-
public class ListInstalledApps extends ListActivity {
20-
//public class ListInstalledApps extends ListFragment {
19+
public class ListInstalledApps extends ListActivity {
20+
//public class ListInstalledApps extends ListFragment {
2121

2222
private PackageManager packageManager = null;
23-
private List<ApplicationInfo> applist=null;
24-
private AppAdapter listAdapter=null;
23+
private List<ApplicationInfo> applist = null;
24+
private AppAdapter listAdapter = null;
2525
private ListView list;
2626
public static final String TAG = "OneKey-LIA";
2727
@Override
2828
protected void onCreate(Bundle savedInstanceState) {
2929
super.onCreate(savedInstanceState);
30-
list=(ListView) findViewById(R.id.list);
31-
packageManager=getPackageManager();
30+
list = (ListView) findViewById(R.id.list);
31+
packageManager = getPackageManager();
3232

3333
new LoadApplications().execute();
3434
}
@@ -56,7 +56,7 @@ protected void onListItemClick(ListView l, View v, int position, long id) {
5656
5757
try{
5858
Toast.makeText(this, "Launching " + app.loadLabel(packageManager) + "...", Toast.LENGTH_LONG).show();
59-
// Intent intent= packageManager.getLeanbackLaunchIntentForPackage(app.packageName);
59+
// Intent intent = packageManager.getLeanbackLaunchIntentForPackage(app.packageName);
6060
6161
// if(intent != null){
6262
// startActivity(intent);
@@ -75,7 +75,7 @@ protected void onListItemClick(ListView l, View v, int position, long id) {
7575
} */
7676

7777
private List<ApplicationInfo> checkForLaunchIntent(List<ApplicationInfo> list){
78-
ArrayList<ApplicationInfo> applist=new ArrayList<ApplicationInfo>();
78+
ArrayList<ApplicationInfo> applist = new ArrayList<ApplicationInfo>();
7979

8080
for(ApplicationInfo info : list){
8181
try{
@@ -90,11 +90,11 @@ private List<ApplicationInfo> checkForLaunchIntent(List<ApplicationInfo> list){
9090
return applist;
9191
}
9292
private class LoadApplications extends AsyncTask<Void, Void, Void> {
93-
private ProgressDialog progress=null;
93+
private ProgressDialog progress = null;
9494

9595
@Override
9696
protected Void doInBackground(Void... params) {
97-
applist = checkForLaunchIntent(packageManager.getInstalledApplications(packageManager.GET_META_DATA));
97+
applist = checkForLaunchIntent(packageManager.getInstalledApplications(PackageManager.GET_META_DATA));
9898
listAdapter=new AppAdapter(ListInstalledApps.this,R.layout.listitem, applist);
9999
return null;
100100
}
@@ -114,4 +114,4 @@ protected void onPreExecute() {
114114
}
115115

116116

117-
}
117+
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44

55
repositories {
66
google()
7-
jcenter()
7+
mavenCentral()
88
}
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:4.2.0'
@@ -18,7 +18,7 @@ buildscript {
1818
allprojects {
1919
repositories {
2020
google()
21-
jcenter()
21+
mavenCentral()
2222
}
2323
}
2424

0 commit comments

Comments
 (0)