.
This commit is contained in:
17
.idea/deploymentTargetDropDown.xml
generated
17
.idea/deploymentTargetDropDown.xml
generated
@@ -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" />
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user