version:1.6
fix: update:增加4:3适配
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.uiui.zyos.receiver;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.util.Log;
|
||||
|
||||
import com.uiui.zyos.fragment.user.UserFragment;
|
||||
|
||||
public class APKinstallReceiver extends BroadcastReceiver {
|
||||
|
||||
private static final String TAG = APKinstallReceiver.class.getSimpleName();
|
||||
|
||||
@Override
|
||||
public void onReceive(final Context context, Intent intent) {
|
||||
// an Intent broadcast.
|
||||
String packageName = intent.getDataString().replace("package:", "");
|
||||
Log.e(TAG, "onReceive: " + packageName + ": " + intent.getAction());
|
||||
Intent updateIntent = new Intent(UserFragment.UPDATE_DESKTOP_ICON_ACTION);
|
||||
intent.setPackage("com.uiui.zyos");
|
||||
context.sendBroadcast(updateIntent);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user