This commit is contained in:
2023-10-04 20:59:36 +05:30
parent 1a7388dd96
commit 3a583f235d
3 changed files with 16 additions and 15 deletions

View File

@@ -6,24 +6,13 @@
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="VIRTUAL_DEVICE_PATH" />
<value value="C:\Users\adity\.android\avd\Pixel_6_Pro_API_34.avd" />
<type value="SERIAL_NUMBER" />
<value value="RZCW41EJRPN" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<targetSelectedWithDropDown>
<Target>
<type value="QUICK_BOOT_TARGET" />
<deviceKey>
<Key>
<type value="VIRTUAL_DEVICE_PATH" />
<value value="C:\Users\adity\.android\avd\Pixel_6_Pro_API_34.avd" />
</Key>
</deviceKey>
</Target>
</targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-10-04T14:40:58.987676300Z" />
<timeTargetWasSelectedWithDropDown value="2023-10-04T15:19:03.332740900Z" />
<runningDeviceTargetsSelectedWithDialog>
<Target>
<type value="RUNNING_DEVICE_TARGET" />

View File

@@ -12,6 +12,7 @@ import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.SwitchCompat;
@@ -90,7 +91,12 @@ public class FUAActivity extends AppCompatActivity {
whiteListAdapter = new MyAppsAdapter(FUAActivity.this, whiteList, true, new MyAppsAdapter.ItemClicked() {
@Override
public void onCLick(AppList appList) {
try {
Intent intent = getPackageManager().getLaunchIntentForPackage(appList.getPackages());
startActivity(intent);
} catch (Exception e) {
Toast.makeText(FUAActivity.this, "Cannot open " + appList.getName(), Toast.LENGTH_SHORT).show();
}
}
});

View File

@@ -59,6 +59,12 @@ public class MyAppsAdapter extends RecyclerView.Adapter<MyAppsAdapter.ViewHolder
holder.ivAddRemove.setVisibility(View.GONE);
}
holder.ivAppIcon.setOnClickListener(v -> {
if (itemClicked != null && isWhiteList){
itemClicked.onCLick(listdata.get(position));
}
});
holder.ivAddRemove.setOnClickListener(v -> {
if (!isAccessibilityAppBlockingEnabled()) {