Skip to content

Commit

Permalink
New desktop & icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lianglixin committed Nov 22, 2020
1 parent 8384cd7 commit 2c1bdce
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "io.virtualapp.sandvxposed"
minSdkVersion 21
targetSdkVersion 28
versionCode 88
versionName "1.2.5.1.3.1.7.6"
versionCode 89
versionName "1.2.5.1.3.1.7.7"
multiDexEnabled true
android {
defaultConfig {
Expand Down
8 changes: 7 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,13 @@
<activity
android:name=".home.HomeActivity"
android:launchMode="singleInstance"
android:theme="@style/UITheme" />
android:label="@string/old_launcher"
android:theme="@style/UITheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".home.ListAppActivity"
android:theme="@style/UITheme" />
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/java/io/virtualapp/home/HomeActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import android.widget.TextView;
import android.widget.Toast;

import com.baidu.mobstat.StatService;
import com.lody.virtual.GmsSupport;
import com.lody.virtual.client.core.RomChecker;
import com.lody.virtual.client.core.VirtualCore;
Expand All @@ -51,6 +52,7 @@
import java.util.Iterator;
import java.util.List;

import io.virtualapp.BuildConfig;
import io.virtualapp.R;
import io.virtualapp.VCommends;
import io.virtualapp.abs.nestedadapter.SmartRecyclerAdapter;
Expand Down Expand Up @@ -146,7 +148,15 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
.setPositiveButton(R.string.accept, (dialog, which) ->
Once.markDone("user_license"))
.create().show();
StatService.setAuthorizedState(this, false);
}
else
{
StatService.setAuthorizedState(this, true);
}
StatService.autoTrace(this);
StatService.setDebugOn(BuildConfig.DEBUG);
StatService.start(this);
}

private void initMenu() {
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/res/layout/desktop_gridview_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
android:adjustViewBounds="true"
android:maxHeight="60dp"
android:contentDescription="@string/app_name" />
<TextView
<com.sk.desktop.vui.SKTextView
android:layout_margin="5dp"
android:id="@+id/tv"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:gravity="center"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/app_name"/>
</LinearLayout>
Binary file modified app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2c1bdce

Please sign in to comment.