|
|
@ -126,6 +126,9 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
|
|
|
|
case R.string.menu_about:
|
|
|
|
case R.string.menu_about:
|
|
|
|
onMenuAbout();
|
|
|
|
onMenuAbout();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case R.string.menu_other:
|
|
|
|
|
|
|
|
onMenuOtherApps();
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
drawerLayout.closeDrawer(drawerList);
|
|
|
|
drawerLayout.closeDrawer(drawerList);
|
|
|
@ -168,6 +171,9 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
|
|
|
|
|
|
|
|
|
|
|
|
drawerArray.add(new DrawerItem(ActivityView.this, R.drawable.baseline_help_24, R.string.menu_about));
|
|
|
|
drawerArray.add(new DrawerItem(ActivityView.this, R.drawable.baseline_help_24, R.string.menu_about));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (getIntentOtherApps().resolveActivity(getPackageManager()) != null)
|
|
|
|
|
|
|
|
drawerArray.add(new DrawerItem(ActivityView.this, R.drawable.baseline_get_app_24, R.string.menu_other));
|
|
|
|
|
|
|
|
|
|
|
|
drawerList.setAdapter(drawerArray);
|
|
|
|
drawerList.setAdapter(drawerArray);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -406,6 +412,12 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
|
|
|
|
return intent;
|
|
|
|
return intent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Intent getIntentOtherApps() {
|
|
|
|
|
|
|
|
Intent intent = new Intent(Intent.ACTION_VIEW);
|
|
|
|
|
|
|
|
intent.setData(Uri.parse("https://play.google.com/store/apps/dev?id=8420080860664580239"));
|
|
|
|
|
|
|
|
return intent;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void onMenuFolders(long account) {
|
|
|
|
private void onMenuFolders(long account) {
|
|
|
|
getSupportFragmentManager().popBackStack("unified", 0);
|
|
|
|
getSupportFragmentManager().popBackStack("unified", 0);
|
|
|
|
|
|
|
|
|
|
|
@ -444,6 +456,10 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
|
|
|
|
fragmentTransaction.commit();
|
|
|
|
fragmentTransaction.commit();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void onMenuOtherApps() {
|
|
|
|
|
|
|
|
startActivity(getIntentOtherApps());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private class DrawerItem {
|
|
|
|
private class DrawerItem {
|
|
|
|
private int id;
|
|
|
|
private int id;
|
|
|
|
private int icon;
|
|
|
|
private int icon;
|
|
|
|